]> granicus.if.org Git - php/commitdiff
remove useless condition 0 > unsigned
authorAnatol Belski <ab@php.net>
Thu, 18 Sep 2014 20:25:00 +0000 (22:25 +0200)
committerAnatol Belski <ab@php.net>
Thu, 18 Sep 2014 22:06:40 +0000 (00:06 +0200)
ext/standard/file.c

index 20a956df9d1fb8da160aea66055be3101cdea0f9..e153d621267a1ded722d2464b329f6bd629cf238 100644 (file)
@@ -1210,7 +1210,7 @@ PHPAPI PHP_FUNCTION(fwrite)
                num_bytes = arg2len;
        } else {
                if (arg3 > 0) {
-                       num_bytes = MAX(0, MIN((size_t)arg3, arg2len));
+                       num_bytes = MIN((size_t)arg3, arg2len);
                } else {
                        num_bytes = 0;
                }