--- embedaddon/php/ext/standard/crypt_sha512.c 2012/02/21 23:48:02 1.1.1.1 +++ embedaddon/php/ext/standard/crypt_sha512.c 2012/05/29 12:34:43 1.1.1.2 @@ -506,7 +506,7 @@ php_sha512_crypt_r(const char *key, const char *salt, sha512_init_ctx(&alt_ctx); /* For every character in the password add the entire password. */ - for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt) { + for (cnt = 0; cnt < (size_t) (16 + alt_result[0]); ++cnt) { sha512_process_bytes(salt, salt_len, &alt_ctx); }