Use gint64 to represent time in MonoStopwatch to prevent overflows.
authorPaolo Molaro <lupus@oddwiz.org>
Tue, 25 Oct 2011 14:46:49 +0000 (16:46 +0200)
committerPaolo Molaro <lupus@oddwiz.org>
Tue, 25 Oct 2011 14:47:48 +0000 (16:47 +0200)
mono/utils/mono-time.h

index 4494ec00111917cd0d5dd869c316a961a564fbf6..294ca1b530a11788bc95119554032e4ea33da97a 100644 (file)
@@ -15,7 +15,7 @@ gint64  mono_100ns_datetime  (void) MONO_INTERNAL;
 
 /* Stopwatch class for internal runtime use */
 typedef struct {
-       gint32 start, stop;
+       gint64 start, stop;
 } MonoStopwatch;
 
 static inline void