[kaffe] CVS kaffe (robilad): small warning fix
Kaffe CVS
cvs-commits at kaffe.org
Wed Mar 8 15:51:49 PST 2006
PatchSet 7146
Date: 2006/03/08 23:29:51
Author: robilad
Branch: HEAD
Tag: (none)
Log:
small warning fix
2006-03-09 Dalibor Topic <robilad at kaffe.org>
* libraries/clib/math/BigInteger.c (Java_java_math_BigInteger_assignLong0):
Use LL instead of L for the masking constants for jlongs.
Members:
ChangeLog:1.4664->1.4665
libraries/clib/math/BigInteger.c:1.29->1.30
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4664 kaffe/ChangeLog:1.4665
--- kaffe/ChangeLog:1.4664 Wed Mar 8 22:48:14 2006
+++ kaffe/ChangeLog Wed Mar 8 23:29:51 2006
@@ -1,4 +1,7 @@
-2006-03-09 Dalibor Topic <topic at amy.domain.wg>
+2006-03-09 Dalibor Topic <robilad at kaffe.org>
+
+ * libraries/clib/math/BigInteger.c (Java_java_math_BigInteger_assignLong0):
+ Use LL instead of L for the masking constants for jlongs.
* libraries/clib/native/TimeZone.c (java_util_VMTimeZone_getSystemTimeZoneId):
Made tempZoneName const to fix a compiler warning.
Index: kaffe/libraries/clib/math/BigInteger.c
diff -u kaffe/libraries/clib/math/BigInteger.c:1.29 kaffe/libraries/clib/math/BigInteger.c:1.30
--- kaffe/libraries/clib/math/BigInteger.c:1.29 Fri Dec 16 01:16:32 2005
+++ kaffe/libraries/clib/math/BigInteger.c Wed Mar 8 23:29:54 2006
@@ -107,9 +107,9 @@
do-nothing operation. At last, the number will be made
negative, as appropriate. */
- mpz_set_ui(res, (unsigned long)((v & 0x7FFFFFFF00000000L) >> shift_distance));
+ mpz_set_ui(res, (unsigned long)((v & 0x7FFFFFFF00000000LL) >> shift_distance));
mpz_mul_2exp(res, res, shift_distance);
- mpz_add_ui(res, res, (unsigned long)(v & 0x00000000FFFFFFFFL));
+ mpz_add_ui(res, res, (unsigned long)(v & 0x00000000FFFFFFFFLL));
if (negative)
mpz_neg(res, res);
More information about the kaffe
mailing list