From 5398bcf84a1df32f6e5a3b62e6aeb72ee37a09c3 Mon Sep 17 00:00:00 2001 From: sewardj Date: Thu, 6 Sep 2001 15:38:16 +0000 Subject: [PATCH] [project @ 2001-09-06 15:38:16 by sewardj] Change a couple more Int32s into CTimes, which they are really. --- ghc/lib/std/Time.hsc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 1.7.10.4