projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ab1cbc5
)
fix debugging code
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 27 Aug 2009 15:06:28 +0000
(15:06 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 27 Aug 2009 15:06:28 +0000
(15:06 +0000)
GHC/IO/Handle/Internals.hs
patch
|
blob
|
history
diff --git
a/GHC/IO/Handle/Internals.hs
b/GHC/IO/Handle/Internals.hs
index
403407f
..
3214bfd
100644
(file)
--- a/
GHC/IO/Handle/Internals.hs
+++ b/
GHC/IO/Handle/Internals.hs
@@
-680,7
+680,7
@@
hLookAhead_ handle_@Handle__{..} = do
debugIO :: String -> IO ()
#if defined(DEBUG_DUMP)
debugIO s = do
debugIO :: String -> IO ()
#if defined(DEBUG_DUMP)
debugIO s = do
- withCStringLen (s++"\n") $ \(p,len) -> c_write 1 p (fromIntegral len)
+ withCStringLen (s++"\n") $ \(p,len) -> c_write 1 (castPtr p) (fromIntegral len)
return ()
#else
debugIO s = return ()
return ()
#else
debugIO s = return ()