From: Guillermo J. Rozas Date: Fri, 18 Sep 1992 16:55:10 +0000 (+0000) Subject: Use ulong_to_integer instead of long_to_integer to handle clock wrap X-Git-Tag: 20090517-FFI~8941 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=dec1483a7c74560fa8bf00abec804b465b5cafc7;p=mit-scheme.git Use ulong_to_integer instead of long_to_integer to handle clock wrap around correctly. --- diff --git a/v7/src/microcode/prosenv.c b/v7/src/microcode/prosenv.c index 1f6063390..7272cb83e 100644 --- a/v7/src/microcode/prosenv.c +++ b/v7/src/microcode/prosenv.c @@ -1,8 +1,8 @@ /* -*-C-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/prosenv.c,v 1.5 1991/10/29 22:55:11 jinx Exp $ +$Id: prosenv.c,v 1.6 1992/09/18 16:55:10 jinx Exp $ -Copyright (c) 1987-91 Massachusetts Institute of Technology +Copyright (c) 1987-1992 Massachusetts Institute of Technology This material was developed by the Scheme project at the Massachusetts Institute of Technology, Department of Electrical Engineering and @@ -103,14 +103,14 @@ DEFINE_PRIMITIVE ("SYSTEM-CLOCK", Prim_system_clock, 0, 0, "Return the current process time in units of milliseconds.") { PRIMITIVE_HEADER (0); - PRIMITIVE_RETURN (long_to_integer (OS_process_clock ())); + PRIMITIVE_RETURN (ulong_to_integer (OS_process_clock ())); } DEFINE_PRIMITIVE ("REAL-TIME-CLOCK", Prim_real_time_clock, 0, 0, "Return the current real time in units of milliseconds.") { PRIMITIVE_HEADER (0); - PRIMITIVE_RETURN (long_to_integer (OS_real_time_clock ())); + PRIMITIVE_RETURN (ulong_to_integer (OS_real_time_clock ())); } DEFINE_PRIMITIVE ("PROCESS-TIMER-CLEAR", Prim_process_timer_clear, 0, 0,