# HG changeset patch # User Richard Laager # Date 1132936687 0 # Node ID 546c292b7f98c3cfe419bd3c7fc6803072c038eb # Parent b1d06ade0e1012f85ca64461a14ee4cd41bcc21e [gaim-migrate @ 14525] /me just got schooled in variable sizes. This should fix GG. Thanks to Bartosz Oler for finding this as the source of the problem. committer: Tailor Script diff -r b1d06ade0e10 -r 546c292b7f98 src/protocols/gg/utils.c --- a/src/protocols/gg/utils.c Fri Nov 25 03:43:59 2005 +0000 +++ b/src/protocols/gg/utils.c Fri Nov 25 16:38:07 2005 +0000 @@ -40,7 +40,10 @@ return 0; if ((errno == ERANGE || (num == LONG_MAX || num == LONG_MIN)) - || num > (long)UINT_MAX || num < 0) +#if (LONG_MAX > UINT_MAX) + || num > (long)UINT_MAX +#endif + || num < 0) return 0; return (uin_t) num;