comparison src/protocols/gg/utils.c @ 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 cadda0024205
children e84fbd0be612
comparison
equal deleted inserted replaced
12222:b1d06ade0e10 12223:546c292b7f98
38 38
39 if (*text == '\0' || *tmp != '\0') 39 if (*text == '\0' || *tmp != '\0')
40 return 0; 40 return 0;
41 41
42 if ((errno == ERANGE || (num == LONG_MAX || num == LONG_MIN)) 42 if ((errno == ERANGE || (num == LONG_MAX || num == LONG_MIN))
43 || num > (long)UINT_MAX || num < 0) 43 #if (LONG_MAX > UINT_MAX)
44 || num > (long)UINT_MAX
45 #endif
46 || num < 0)
44 return 0; 47 return 0;
45 48
46 return (uin_t) num; 49 return (uin_t) num;
47 } 50 }
48 /* }}} */ 51 /* }}} */