[PATCH] exif warning fix?

From: Date: Thu, 10 Mar 2005 10:17:12 +0000
Subject: [PATCH] exif warning fix?
Groups: php.internals 
Request: Send a blank email to internals+get-15340@lists.php.net to get a copy of this message
Testing "length >= LONG_MAX" where length is an int is always false, and gcc gives a warning for it. Perhaps something like this was intended? Index: ext/exif/exif.c =================================================================== RCS file: /repository/php-src/ext/exif/exif.c,v retrieving revision 1.170 diff -u -r1.170 exif.c --- ext/exif/exif.c 2 Mar 2005 18:21:45 -0000 1.170 +++ ext/exif/exif.c 10 Mar 2005 10:15:31 -0000 @@ -1557,7 +1557,7 @@ image_info_data *info_data; image_info_data *list; - if (length >= LONG_MAX) { + if ((unsigned int)length >= INT_MAX) { return; }

« previous php.internals (#15340) next »