Fix year 2001 bug

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4885 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-09-13 09:18:56 +00:00
parent 3881c29981
commit b9b1e3afef
2 changed files with 3 additions and 5 deletions

View file

@ -1,6 +1,8 @@
Mon Sep 13 6:45:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk> Mon Sep 13 6:45:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
Miscellaneous minor bugfixes plyus, Miscellaneous minor bugfixes plus,
* Source/NSDate.m: Year 2001 bug fixed - had silly assertion in
generation of time interval since reference date for current time.
* Source/NSScanner.m: optimised (well, mostly). * Source/NSScanner.m: optimised (well, mostly).
* Headers/Foundation/NSScanner.h: update for optimisatio). * Headers/Foundation/NSScanner.h: update for optimisatio).

View file

@ -118,10 +118,6 @@ GSTimeNow()
gettimeofday (&tp, NULL); gettimeofday (&tp, NULL);
interval += tp.tv_sec; interval += tp.tv_sec;
interval += (double)tp.tv_usec / 1000000.0; interval += (double)tp.tv_usec / 1000000.0;
/* There seems to be a problem with bad double arithmetic... */
NSCAssert(interval < 0, NSInternalInconsistencyException);
return interval; return interval;
#else #else
SYSTEMTIME sys_time; SYSTEMTIME sys_time;