changeset 12223:546c292b7f98

[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 <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Fri, 25 Nov 2005 16:38:07 +0000
parents b1d06ade0e10
children e84fbd0be612
files src/protocols/gg/utils.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;