From: ken Date: Wed, 5 Sep 2001 04:03:15 +0000 (+0000) Subject: [project @ 2001-09-05 04:03:15 by ken] X-Git-Tag: Approximately_9120_patches~1025 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=3fa9a538f8fe77c07f78d30b8fd2ce1e65b3b709;p=ghc-hetmet.git [project @ 2001-09-05 04:03:15 by ken] Replace CLong with CInt32 to fix 32-bit assumption. MERGE TO STABLE BRANCH --- diff --git a/ghc/lib/std/CPUTime.hsc b/ghc/lib/std/CPUTime.hsc index 4f88bd5..d5f9b3f 100644 --- a/ghc/lib/std/CPUTime.hsc +++ b/ghc/lib/std/CPUTime.hsc @@ -1,5 +1,5 @@ -- ----------------------------------------------------------------------------- --- $Id: CPUTime.hsc,v 1.10 2001/08/10 09:53:40 sewardj Exp $ +-- $Id: CPUTime.hsc,v 1.11 2001/09/05 04:03:15 ken Exp $ -- -- (c) The University of Glasgow, 1995-2001 -- @@ -51,10 +51,10 @@ getCPUTime = do let ru_utime = (#ptr struct rusage, ru_utime) p_rusage let ru_stime = (#ptr struct rusage, ru_stime) p_rusage - u_sec <- (#peek struct timeval,tv_sec) ru_utime :: IO CLong - u_usec <- (#peek struct timeval,tv_usec) ru_utime :: IO CLong - s_sec <- (#peek struct timeval,tv_sec) ru_stime :: IO CLong - s_usec <- (#peek struct timeval,tv_usec) ru_stime :: IO CLong + u_sec <- (#peek struct timeval,tv_sec) ru_utime :: IO Int32 + u_usec <- (#peek struct timeval,tv_usec) ru_utime :: IO Int32 + s_sec <- (#peek struct timeval,tv_sec) ru_stime :: IO Int32 + s_usec <- (#peek struct timeval,tv_usec) ru_stime :: IO Int32 return ((fromIntegral u_sec * 1000000 + fromIntegral u_usec + fromIntegral s_sec * 1000000 + fromIntegral s_usec)