[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnet ChangeLog support/cvt_float.c
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] pnet ChangeLog support/cvt_float.c |
Date: |
Fri, 25 May 2007 11:23:56 +0000 |
CVSROOT: /cvsroot/dotgnu-pnet
Module name: pnet
Changes by: Klaus Treichel <ktreichel> 07/05/25 11:23:56
Modified files:
. : ChangeLog
support : cvt_float.c
Log message:
Fix a problem converting UInt64 to NativeFloat.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnet/ChangeLog?cvsroot=dotgnu-pnet&r1=1.3456&r2=1.3457
http://cvs.savannah.gnu.org/viewcvs/pnet/support/cvt_float.c?cvsroot=dotgnu-pnet&r1=1.2&r2=1.3
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ChangeLog,v
retrieving revision 1.3456
retrieving revision 1.3457
diff -u -b -r1.3456 -r1.3457
--- ChangeLog 24 May 2007 13:51:13 -0000 1.3456
+++ ChangeLog 25 May 2007 11:23:55 -0000 1.3457
@@ -1,3 +1,9 @@
+2007-05-25 Klaus Treichel <address@hidden>
+
+ * support/cvt_float.c: Fix a problem with converting UInt64 values
greater
+ than IL_MAX_INT64 ti ILNativeFloat. Gcc generated code that returned
always
+ 0 in this case.
+
2007-05-24 Klaus Treichel <address@hidden>
* codegen/cg_defs.h, codegen/cg_scope.h: Move the opaque declaration of
Index: support/cvt_float.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/support/cvt_float.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- support/cvt_float.c 12 Nov 2006 17:10:11 -0000 1.2
+++ support/cvt_float.c 25 May 2007 11:23:55 -0000 1.3
@@ -39,8 +39,8 @@
}
else
{
- return ((ILNativeFloat)(((ILInt64)value) + IL_MIN_INT64)) +
- (ILNativeFloat)9223372036854775808.0;
+ return (ILNativeFloat)((ILInt64)value) +
+ (ILNativeFloat)18446744073709551616.0;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnet ChangeLog support/cvt_float.c,
Klaus Treichel <=