[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] data type "int" and article numbers in leafnode -
David Given wrote:
> Cornelius Krasel wrote:
> >Matthias Andree wrote:
> >> after hacking a little in leafnode (I hope, the world is already
> >> appreciating some of the bug fixes I contributed), I am wondering which
> >> part of the entire package guarantees that an int is actually at least
> >> 32 bits wide. Since all article numbers are stored in a simple "int"
> >> type variable, I expect leafnode to break down horribly in case
> >> somebody uses it on a system that uses 16 bit "int".
> >Yup. The proper solution would be to replace all ints by unsigned longs.
> >I think Kazushi has done this in leafnode+. I suppose it will be a major
> >hassle, though :-)
> Our you could use glib and gints (which are guaranteed to be 32 bits wide or
> better). This would get you all the funky glib data management routines, too,
> that I'm sure would be useful somewhere.
I am somewhat reluctant to do that, because I don't want to be dependent
on "yet another" library. Anyway, it appears that I have successfully
converted most of the respective ints to unsigned longs; we'll see how
fast the local pre-alpha will crash :-}
/* Cornelius Krasel, U Wuerzburg, Dept. of Pharmacology, Versbacher Str. 9 */
/* D-97078 Wuerzburg, Germany email: phak004@xxxxxxxxxxxxxxxxxxxxxx SP4 */
/* "Science is the game we play with God to find out what His rules are." */
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list