Use the correct libffi type for pointers
[ghc-hetmet.git] / compiler / deSugar / DsForeign.lhs
index d7096ae..05ff8bd 100644 (file)
@@ -656,7 +656,7 @@ primTyDescChar ty
      WordRep     -> unsigned_word
      Int64Rep    -> 'L'
      Word64Rep   -> 'l'
-     AddrRep     -> unsigned_word
+     AddrRep     -> 'p'
      FloatRep    -> 'f'
      DoubleRep   -> 'd'
      _           -> pprPanic "primTyDescChar" (ppr ty)