]> granicus.if.org Git - php/commitdiff
fix datatype warnings
authorAnatol Belski <ab@php.net>
Wed, 22 Oct 2014 14:15:55 +0000 (16:15 +0200)
committerAnatol Belski <ab@php.net>
Wed, 22 Oct 2014 15:56:28 +0000 (17:56 +0200)
ext/standard/crypt.c

index 9599e2f056eddd18caab8fef19d0a5e01ce4a983..7fae04fcbf40d56836ecf4d3de4f5a3e631f5171 100644 (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 {