From: sewardj Date: Thu, 6 Sep 2001 15:38:16 +0000 (+0000) Subject: [project @ 2001-09-06 15:38:16 by sewardj] X-Git-Tag: Approximately_9120_patches~1019 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=5398bcf84a1df32f6e5a3b62e6aeb72ee37a09c3;p=ghc-hetmet.git [project @ 2001-09-06 15:38:16 by sewardj] Change a couple more Int32s into CTimes, which they are really. --- diff --git a/ghc/lib/std/Time.hsc b/ghc/lib/std/Time.hsc index 45d8583..b3440ca 100644 --- a/ghc/lib/std/Time.hsc +++ b/ghc/lib/std/Time.hsc @@ -1,6 +1,6 @@ -- ----------------------------------------------------------------------------- --- $Id: Time.hsc,v 1.20 2001/08/14 13:40:08 sewardj Exp $ +-- $Id: Time.hsc,v 1.21 2001/09/06 15:38:16 sewardj Exp $ -- -- (c) The University of Glasgow, 1995-2001 -- @@ -206,8 +206,8 @@ noTimeDiff = TimeDiff 0 0 0 0 0 0 0 getClockTime = do allocaBytes (#const sizeof(struct timeval)) $ \ p_timeval -> do throwErrnoIfMinus1_ "getClockTime" $ gettimeofday p_timeval nullPtr - sec <- (#peek struct timeval,tv_sec) p_timeval :: IO Int32 - usec <- (#peek struct timeval,tv_usec) p_timeval :: IO Int32 + sec <- (#peek struct timeval,tv_sec) p_timeval :: IO CTime + usec <- (#peek struct timeval,tv_usec) p_timeval :: IO CTime return (TOD (fromIntegral sec) ((fromIntegral usec) * 1000)) #elif HAVE_FTIME