PatchSet 7146 
Date: 2006/03/08 23:29:51
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
small warning fix

2006-03-09  Dalibor Topic  <[EMAIL PROTECTED]>

* 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  <[EMAIL PROTECTED]>
+2006-03-09  Dalibor Topic  <[EMAIL PROTECTED]>
+
+       * 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);

_______________________________________________
kaffe mailing list
[email protected]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to