#14 64-bit gremlin in mstore breaks on linux alpha

Other
open
nobody
5
2000-05-06
2000-05-06
Anonymous
No

Mstore.c calls ical_preprocess with a &size argument where size
is an int (defined by ANSI C as 4 bytes). Ical_preprocess's second
argument is actually a size_t, which is 8 bytes on Alpha Linux.
I worked around it by just casting it in ical_preprocess like this:
int isize;
isize = *(int *)size;
(used isize in the loop)
*size = (size_t) (out-buf);
at the end of the routine, but that's really just a hack
in case it happens in multiple places.

Neat library, BTW! Now that I can read events,
I'll play with it some more :-).

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks