[Vm-dev] [commit][3650] ioLocalSecondsOffset must be signed.
commits at squeakvm.org
commits at squeakvm.org
Thu Mar 24 01:03:08 UTC 2016
Revision: 3650
Author: eliot
Date: 2016-03-23 18:03:08 -0700 (Wed, 23 Mar 2016)
Log Message:
-----------
ioLocalSecondsOffset must be signed.
Modified Paths:
--------------
branches/Cog/platforms/Cross/vm/sq.h
branches/Cog/platforms/unix/vm/sqUnixHeartbeat.c
branches/Cog/platforms/unix/vm/sqUnixITimerHeartbeat.c
branches/Cog/platforms/unix/vm/sqUnixITimerTickerHeartbeat.c
branches/Cog/platforms/win32/vm/sqWin32Heartbeat.c
Property Changed:
----------------
branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
Modified: branches/Cog/platforms/Cross/vm/sq.h
===================================================================
--- branches/Cog/platforms/Cross/vm/sq.h 2016-03-24 00:43:16 UTC (rev 3649)
+++ branches/Cog/platforms/Cross/vm/sq.h 2016-03-24 01:03:08 UTC (rev 3650)
@@ -161,7 +161,7 @@
unsigned volatile long long ioLocalMicrosecondsNow();
unsigned volatile long long ioLocalMicroseconds();
unsigned long long ioUTCStartMicroseconds();
-usqInt ioLocalSecondsOffset();
+sqInt ioLocalSecondsOffset();
void ioUpdateVMTimezone();
void ioSynchronousCheckForEvents();
void checkHighPriorityTickees(usqLong);
Property changes on: branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
___________________________________________________________________
Modified: checkindate
- Wed Mar 23 17:35:24 PDT 2016
+ Wed Mar 23 18:02:37 PDT 2016
Modified: branches/Cog/platforms/unix/vm/sqUnixHeartbeat.c
===================================================================
--- branches/Cog/platforms/unix/vm/sqUnixHeartbeat.c 2016-03-24 00:43:16 UTC (rev 3649)
+++ branches/Cog/platforms/unix/vm/sqUnixHeartbeat.c 2016-03-24 01:03:08 UTC (rev 3650)
@@ -188,8 +188,8 @@
unsigned volatile long long
ioLocalMicroseconds() { return get64(localMicrosecondClock); }
-usqInt
-ioLocalSecondsOffset() { return (usqInt)(vmGMTOffset / MicrosecondsPerSecond); }
+sqInt
+ioLocalSecondsOffset() { return vmGMTOffset / MicrosecondsPerSecond; }
/* This is an expensive interface for use by Smalltalk or vm profiling code that
* wants the time now rather than as of the last heartbeat.
Modified: branches/Cog/platforms/unix/vm/sqUnixITimerHeartbeat.c
===================================================================
--- branches/Cog/platforms/unix/vm/sqUnixITimerHeartbeat.c 2016-03-24 00:43:16 UTC (rev 3649)
+++ branches/Cog/platforms/unix/vm/sqUnixITimerHeartbeat.c 2016-03-24 01:03:08 UTC (rev 3650)
@@ -179,8 +179,8 @@
unsigned volatile long long
ioLocalMicroseconds() { return get64(localMicrosecondClock); }
-usqInt
-ioLocalSecondsOffset() { return (usqInt)(vmGMTOffset / MicrosecondsPerSecond); }
+sqInt
+ioLocalSecondsOffset() { return vmGMTOffset / MicrosecondsPerSecond; }
/* This is an expensive interface for use by Smalltalk or vm profiling code that
* wants the time now rather than as of the last heartbeat.
Modified: branches/Cog/platforms/unix/vm/sqUnixITimerTickerHeartbeat.c
===================================================================
--- branches/Cog/platforms/unix/vm/sqUnixITimerTickerHeartbeat.c 2016-03-24 00:43:16 UTC (rev 3649)
+++ branches/Cog/platforms/unix/vm/sqUnixITimerTickerHeartbeat.c 2016-03-24 01:03:08 UTC (rev 3650)
@@ -181,8 +181,8 @@
unsigned volatile long long
ioLocalMicroseconds() { return get64(localMicrosecondClock); }
-usqInt
-ioLocalSecondsOffset() { return (usqInt)(vmGMTOffset / MicrosecondsPerSecond); }
+sqInt
+ioLocalSecondsOffset() { return vmGMTOffset / MicrosecondsPerSecond; }
/* This is an expensive interface for use by Smalltalk or vm profiling code that
* wants the time now rather than as of the last heartbeat.
Modified: branches/Cog/platforms/win32/vm/sqWin32Heartbeat.c
===================================================================
--- branches/Cog/platforms/win32/vm/sqWin32Heartbeat.c 2016-03-24 00:43:16 UTC (rev 3649)
+++ branches/Cog/platforms/win32/vm/sqWin32Heartbeat.c 2016-03-24 01:03:08 UTC (rev 3650)
@@ -225,8 +225,8 @@
unsigned volatile long long
ioLocalMicroseconds() { return get64(localMicrosecondClock); }
-usqInt
-ioLocalSecondsOffset() { return (usqInt)(vmGMTOffset / MicrosecondsPerSecond); }
+sqInt
+ioLocalSecondsOffset() { return vmGMTOffset / MicrosecondsPerSecond; }
/* This is an expensive interface for use by Smalltalk or vm profiling code that
* wants the time now rather than as of the last heartbeat.
More information about the Vm-dev
mailing list