]> granicus.if.org Git - php/commit
Fix tautological compare warning
authorDavid Carlier <devnexen@gmail.com>
Fri, 13 Sep 2019 10:37:53 +0000 (11:37 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 13 Sep 2019 22:25:00 +0000 (00:25 +0200)
commit711bd0a0fcd681df5d03d3b869fc3ddc7db1a75b
tree01244b79df0e7fe026f7f28858e9656dbc490c97
parentee0bf4b24d8f6d1e91e276d1dcdbd7e455c7d597
Fix tautological compare warning

The ZEND_ALLOCATOR() macro compares against constants that are
larger than the unsigned short type, resulting in warnings on
clang. Avoid this by explicitly casting to size_t.
ext/standard/image.c