mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
48fbc75abb
commit
42ca73da20
2 changed files with 3 additions and 5 deletions
|
@ -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).
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue