Hi Ilia,

----- Original Message -----
From: "Ilia Alshanetsky"
Sent: Wednesday, April 15, 2009

iliaa Wed Apr 15 14:24:38 2009 UTC

 Modified files:              (Branch: PHP_5_3)
   /php-src/ext/standard mail.c

 Fixed bug #47969 (ezmlm_hash() returns different values depend on OS)

@@ -76,7 +76,7 @@
 char *str = NULL;
- unsigned long h = 5381L;
+ unsigned int h = 5381;

You're relying on int being 32-bit? Couldn't it be 64-bit as well? http://en.wikipedia.org/wiki/64-bit#64-bit_data_models

BTW, (unsigned long) cast is still used in the loop, although I guess it's not affecting that expression... And the cast in RETURN_LONG((int) h); isn't needed, but that was true before. Just noticed while checking if I was missing something else. :-)

- Matt

PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to