From 27727108b3b7e3d4d9fb9d1f5aad0fd89cc8d32c Mon Sep 17 00:00:00 2001 From: Clifford Matthews Date: Sun, 14 Jun 2009 17:19:36 -0600 Subject: [PATCH] Fixed Time low-memory global on Mac OS X port. --- TODO | 2 ++ src/toolevent.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 34d7ac5..dc666f3 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,5 @@ + Get rid of old copy-protection stuff + package up the System Folder and whatnot so that people w/o the old executor-aux can run Executor diff --git a/src/toolevent.c b/src/toolevent.c index 3c40398..3d46d01 100644 --- a/src/toolevent.c +++ b/src/toolevent.c @@ -1319,8 +1319,8 @@ P0 (PUBLIC pascal trap, LONGINT, TickCount) will get set eventually and that will cause trouble */ new_time = (UNIXTIMETOMACTIME (ROMlib_start_time.tv_sec) - + ((ROMlib_start_time.tv_usec / (1000000.0 / 60) + ticks) / 60)); - + + (long) ((ROMlib_start_time.tv_usec / (1000000.0 / 60) + ticks) / 60)); + Time = CL (new_time); return ticks; }