From dec1483a7c74560fa8bf00abec804b465b5cafc7 Mon Sep 17 00:00:00 2001 From: "Guillermo J. Rozas" Date: Fri, 18 Sep 1992 16:55:10 +0000 Subject: [PATCH] Use ulong_to_integer instead of long_to_integer to handle clock wrap around correctly. --- v7/src/microcode/prosenv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, -- 2.25.1