diff --git a/ChangeLog b/ChangeLog index f7e2cbc59..5bc36c894 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-05-04 Richard Frith-Macdonald + + * Source/NSDate.m: GSTimeNow() remove volatile typespec and move + initialisation of interval in the hope of fixing a problem with + float operations. In any case, the code is tidier. + 2001-05-03 Adam Fedor * configure.in: Don't use -lobjc with NeXT_RUNTIME. Check for -lm. diff --git a/Source/NSDate.m b/Source/NSDate.m index 3dc667bee..6c766bf80 100644 --- a/Source/NSDate.m +++ b/Source/NSDate.m @@ -117,11 +117,11 @@ NSTimeInterval GSTimeNow() { #if !defined(__MINGW__) - volatile NSTimeInterval interval; + NSTimeInterval interval; struct timeval tp; - interval = UNIX_REFERENCE_INTERVAL; gettimeofday (&tp, NULL); + interval = UNIX_REFERENCE_INTERVAL; interval += tp.tv_sec; interval += (double)tp.tv_usec / 1000000.0; return interval;