1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 21:41:22 +02:00

- Kill doze compiler warning

This commit is contained in:
Steph Fox
2008-04-14 17:23:25 +00:00
parent 65e04335a6
commit ef203ea793

View File

@@ -596,7 +596,7 @@ static int phar_wrapper_stat(php_stream_wrapper *wrapper, char *url, int flags,
if (HASH_KEY_NON_EXISTANT !=
zend_hash_get_current_key_ex(
&phar->manifest, &key, &keylen, &unused, 0, NULL)) {
if (keylen >= internal_file_len && 0 == memcmp(internal_file, key, internal_file_len)) {
if (keylen >= (uint)internal_file_len && 0 == memcmp(internal_file, key, internal_file_len)) {
/* directory found, all dirs have the same stat */
if (key[internal_file_len] == '/') {
phar_dostat(phar, NULL, ssb, 1, phar->alias, phar->alias_len TSRMLS_CC);