- use %zu for size_t
[m6w6/ext-http] / http_message_api.c
index fdb0812bf480110edbe593dfdff6b3c102e579a5..f7492280357be5e32fdd79b9e7ed6ad2c7537668 100644 (file)
@@ -160,7 +160,7 @@ PHP_HTTP_API http_message *_http_message_parse_ex(http_message *msg, const char
                                char *tmp;
                                int tmp_len;
 
-                               tmp_len = (int) spprintf(&tmp, 0, "%lu", (ulong) decoded_len);
+                               tmp_len = (int) spprintf(&tmp, 0, "%zu", decoded_len);
                                MAKE_STD_ZVAL(len);
                                ZVAL_STRINGL(len, tmp, tmp_len, 0);
 
@@ -264,7 +264,7 @@ PHP_HTTP_API http_message *_http_message_parse_ex(http_message *msg, const char
                                char *tmp;
                                int tmp_len;
                                
-                               tmp_len = (int) spprintf(&tmp, 0, "%lu", (ulong) decoded_len);
+                               tmp_len = (int) spprintf(&tmp, 0, "%zu", decoded_len);
                                MAKE_STD_ZVAL(len);
                                ZVAL_STRINGL(len, tmp, tmp_len, 0);