projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2005-01-31 13:46:24 by simonmar]
[ghc-base.git]
/
Data
/
Unique.hs
diff --git
a/Data/Unique.hs
b/Data/Unique.hs
index
a5a96f6
..
1c1ceb8
100644
(file)
--- a/
Data/Unique.hs
+++ b/
Data/Unique.hs
@@
-21,7
+21,7
@@
module Data.Unique (
import Prelude
import Prelude
-import Control.Concurrent
+import Control.Concurrent.MVar
import System.IO.Unsafe (unsafePerformIO)
#ifdef __GLASGOW_HASKELL__
import System.IO.Unsafe (unsafePerformIO)
#ifdef __GLASGOW_HASKELL__
@@
-57,5
+57,5
@@
hashUnique (Unique (S# i)) = I# i
hashUnique (Unique (J# s d)) | s ==# 0# = 0
| otherwise = I# (indexIntArray# d 0#)
#else
hashUnique (Unique (J# s d)) | s ==# 0# = 0
| otherwise = I# (indexIntArray# d 0#)
#else
-hashUnique (Unique u) = u `mod` (fromIntegral (maxBound :: Int) + 1)
+hashUnique (Unique u) = fromInteger (u `mod` (toInteger (maxBound :: Int) + 1))
#endif
#endif