Commit adbb4dfb adbb4dfbeca5dc1c1b6152d1e247901b91d1c942 by Alain Magloire

* mailbox/mutil.c (mu_hexstr2ul): Properly cast the expression

	before doing the comparison.
1 parent d865fd96
......@@ -57,7 +57,7 @@ size_t mu_hexstr2ul(unsigned long* ul, const char* hex, size_t len)
{
unsigned long v = mu_hex2ul(hex[r]);
if(v == -1)
if(v == (unsigned long)-1)
return r;
*ul = *ul * 16 + v;
......