[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private/NumberFormat
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private/NumberFormat Formatter.cs, 1.8, 1.9 |
Date: |
Sat, 19 Jul 2003 17:40:51 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private/NumberFormat
In directory subversions:/tmp/cvs-serv3523/runtime/System/Private/NumberFormat
Modified Files:
Formatter.cs
Log Message:
Modify overflow detection
Index: Formatter.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private/NumberFormat/Formatter.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** Formatter.cs 18 Jul 2003 18:22:48 -0000 1.8
--- Formatter.cs 19 Jul 2003 21:40:49 -0000 1.9
***************
*** 302,306 ****
if (IsSignedInt(o) && (OToLong(o) < 0) )
{
! if(o==Int64.MinValue)
{
// because -(Int64.MinValue) does not exist
--- 302,308 ----
if (IsSignedInt(o) && (OToLong(o) < 0) )
{
! ulong value=(ulong) -OToLong(o);
!
! if(value==0)
{
// because -(Int64.MinValue) does not exist
***************
*** 309,313 ****
else
{
! ret = "-" + Formatter.FormatInteger((ulong)
-OToLong(o));
}
}
--- 311,315 ----
else
{
! ret = "-" + Formatter.FormatInteger(value);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private/NumberFormat Formatter.cs, 1.8, 1.9,
Gopal.V <address@hidden> <=