]> granicus.if.org Git - php/commitdiff
use constant
authorIlia Alshanetsky <iliaa@php.net>
Thu, 15 Feb 2007 01:40:36 +0000 (01:40 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 15 Feb 2007 01:40:36 +0000 (01:40 +0000)
ext/mcrypt/mcrypt.c

index 12242ed017caeb29c6da20afb1f07306620f55c1..c5c8c5f0fc8b3ab4211d3c65e4c117eb3c1ba2d4 100644 (file)
@@ -1242,7 +1242,7 @@ PHP_FUNCTION(mcrypt_create_iv)
                return;
        }
 
-       if (size <= 0 || size >= 2147483647) {
+       if (size <= 0 || size >= INT_MAX) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can not create an IV with a size of less then 1 or greater then %d", INT_MAX);
                RETURN_FALSE;
        }