- fix WONKY build
[m6w6/ext-http] / php_http_cache_api.h
index be59f5702c82317b8e29103d2a07f9b8de7b168b..f92e30aac7c13075341afe95b59eb3a9fdaf8441 100644 (file)
@@ -86,8 +86,8 @@ static inline void *_http_etag_init(TSRMLS_D)
                
 #ifdef HAVE_LIBMHASH
                default:
-                       if ((mode < 0) || (mode > mhash_count()) || (!(ctx = mhash_init(mode)))) {
-                               http_error_ex(HE_ERROR, HE_RUNTIME, "Invalid ETag mode: %ld", mode);
+                       if ((mode < 0) || ((ulong)mode > mhash_count()) || (!(ctx = mhash_init(mode)))) {
+                               http_error_ex(HE_ERROR, HTTP_E_RUNTIME, "Invalid ETag mode: %ld", mode);
                        }
                break;
 #endif