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 Frith-MacDonald 1999-09-13 09:18:56 +00:00
parent 48fbc75abb
commit 42ca73da20
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>
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).
* Headers/Foundation/NSScanner.h: update for optimisatio).

View file

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