X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_cache_api.h;h=b8120891239810c9136b9c2e79c308f17b25e311;hp=be59f5702c82317b8e29103d2a07f9b8de7b168b;hb=1b093720ee0708c101a273e739ddb774f7d7f6d0;hpb=cdbe702a66e68d97885d5305278246c2630c9f10 diff --git a/php_http_cache_api.h b/php_http_cache_api.h index be59f57..b812089 100644 --- a/php_http_cache_api.h +++ b/php_http_cache_api.h @@ -86,7 +86,7 @@ static inline void *_http_etag_init(TSRMLS_D) #ifdef HAVE_LIBMHASH default: - if ((mode < 0) || (mode > mhash_count()) || (!(ctx = mhash_init(mode)))) { + if ((mode < 0) || ((ulong)mode > mhash_count()) || (!(ctx = mhash_init(mode)))) { http_error_ex(HE_ERROR, HE_RUNTIME, "Invalid ETag mode: %ld", mode); } break;