com php-src: remove useless condition 0 > unsigned: ext/standard/file.c

From: Date: Thu, 18 Sep 2014 22:06:40 +0000
Subject: com php-src: remove useless condition 0 > unsigned: ext/standard/file.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81747@lists.php.net to get a copy of this message
Commit: adf753159b534885b31586cd5b37bdf36d806df0 Author: Anatol Belski <ab@php.net> Thu, 18 Sep 2014 22:25:00 +0200 Parents: 4722d85c1ea3d8dfb9852f1f5cbb7310543e0779 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=adf753159b534885b31586cd5b37bdf36d806df0 Log: remove useless condition 0 > unsigned Changed paths: M ext/standard/file.c Diff: diff --git a/ext/standard/file.c b/ext/standard/file.c index 20a956d..e153d62 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -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; }

« previous php.cvs (#81747) next »