Skip to content

Commit

Permalink
Fix bad type. Please read below
Browse files Browse the repository at this point in the history
  • Loading branch information
master-q committed Jan 19, 2014
1 parent 149235b commit 41c453e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jhc/Jhc/Addr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ INST_EQORDER((Ptr a),Ptr,Addr_,U)
INST_EQORDER((FunPtr a),FunPtr,FunAddr_,U)

{-# INLINE plusPtr #-}
plusPtr :: Ptr a -> Int -> Ptr a
plusPtr :: Ptr a -> Int -> Ptr b
plusPtr (Ptr addr) off = case unboxInt off of
off_ -> Ptr (addr `plusWordPtr` intToPtr__ off_)

{-# INLINE minusPtr #-}
minusPtr :: Ptr a -> Ptr a -> Int
minusPtr :: Ptr a -> Ptr b -> Int
minusPtr (Ptr a1) (Ptr a2) = boxInt (a1 `minusWP` a2)

foreign import primitive "Sx" intToPtr__ :: Int__ -> Addr_
Expand Down

0 comments on commit 41c453e

Please sign in to comment.