Guillaume Yziquel wrote: > Given that Val_int is Val_long (in mlvalues.h): > > #define Val_int(x) Val_long(x) > > it's not an issue with this piece of code. > > But depending on what "doesn't work" means and on the declarations of > width and height, then sizeof(int) < sizeof(long) may explain the issue.
The width and height variables are both defined as int and I'm working on 32 bit Linux. Doesn't work means I don't get the value I think I should (small integers in the range [16, 144]) but rather gte values that look more like pointers. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/ -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
