"warning: cast to pointer from integer of different size"

Simon Marlow simonmar at microsoft.com
Tue Jan 10 07:50:20 EST 2006


Ian Lynagh wrote:
> On Debian Linux/amd64 with
> 
>     gcc version 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)
> 
> and this module:
> 
> --------------------------------
> module Q where
> 
> import Char (chr, digitToInt)
> 
> hexToChar :: Char -> Char -> Char
> hexToChar x y = chr (digitToInt x + digitToInt y)
> --------------------------------
> 
> I get:
> 
> $ rm Q.o; ghc -O -fglasgow-exts -c Q.hs
> /tmp/ghc29650.hc: In function #s1zC_ret#:
> /tmp/ghc29650.hc:36: warning: cast to pointer from integer of different size
> $ rm Q.o; ghc-cvs -O -fglasgow-exts -c Q.hs
> /tmp/ghc29656_0.hc: In function #svJ_ret#:
> 
> /tmp/ghc29656_0.hc:34:0:
>      warning: cast to pointer from integer of different size
> $

This is now fixed, I believe.

Cheers,
	Simon




More information about the Glasgow-haskell-bugs mailing list