fix datatype warnings

This commit is contained in:
Anatol Belski 2014-10-22 16:15:55 +02:00
parent 09a01a834e
commit f58edcd996

View file

@ -295,7 +295,7 @@ PHP_FUNCTION(crypt)
}
salt[salt_in_len] = '\0';
if ((result = php_crypt(str, str_len, salt, salt_in_len)) == NULL) {
if ((result = php_crypt(str, (int)str_len, salt, (int)salt_in_len)) == NULL) {
if (salt[0] == '*' && salt[1] == '0') {
RETURN_STRING("*1");
} else {