- ditch warnings
[m6w6/ext-http] / php_http_cache_api.h
index be59f5702c82317b8e29103d2a07f9b8de7b168b..b8120891239810c9136b9c2e79c308f17b25e311 100644 (file)
@@ -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;