fix return type cast in f.i.wrapper when using libffi (#3516)
authorSimon Marlow <marlowsd@gmail.com>
Mon, 29 Mar 2010 15:42:20 +0000 (15:42 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 29 Mar 2010 15:42:20 +0000 (15:42 +0000)
commit3891512c4c770dadd0372ad84d2dec72b34652d2
treea41066cd7c1b6cecdbe81f1f562d5381b99231f9
parent569880390c3d9c4d1c5ae748471f37fe5ff8e4db
fix return type cast in f.i.wrapper when using libffi (#3516)

Original fix submitted by
  Sergei Trofimovich <slyfox@community.haskell.org>
modified by me:
 - exclude 64-bit types
 - compare uniques, not strings
 - #include "ffi.h" is conditional
compiler/deSugar/DsForeign.lhs
compiler/main/CodeOutput.lhs