On Thu, Dec 11, 2003 at 08:55:25PM -0500, Liwen Huang wrote: > Hello: > > I am using GreenCard to import some C code into Haskell. The code I want to > import uses "long" in a lot of places. I tried to write my own DIS for it and I also > write a very simple test program. However, the DIS does not work properly. My > program and test result are as following: > -------------------------------------------------------------------------- > module TLong where > > import Foreign.GreenCard > > type Long = Int64 > %dis long x = int64 x
Just out of curiosity: Are you sure that the long C types on your system actually refer to 64-bit integer. On most platform they refer to 32 bit types. You would need long long to get 64 bit integers. Axel. _______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell