[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] data type "int" and article numbers in leafnode - portability?
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 :-)
--Cornelius.
--
/* 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