Skip to content

Commit 3ff5fb0

Browse files
author
Ilia Alshanetsky
committed
Fixed compiler warning
1 parent d74f9ff commit 3ff5fb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/zlib/zlib_filter.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *f
275275
/* Create this filter */
276276
data = pecalloc(1, sizeof(php_zlib_filter_data), persistent);
277277
if (!data) {
278-
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %d bytes.", sizeof(php_zlib_filter_data));
278+
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %ld bytes.", sizeof(php_zlib_filter_data));
279279
return NULL;
280280
}
281281

@@ -287,14 +287,14 @@ static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *f
287287
data->strm.avail_out = data->outbuf_len = data->inbuf_len = 2048;
288288
data->strm.next_in = data->inbuf = (Bytef *) pemalloc(data->inbuf_len, persistent);
289289
if (!data->inbuf) {
290-
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %d bytes.", data->inbuf_len);
290+
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %ld bytes.", data->inbuf_len);
291291
pefree(data, persistent);
292292
return NULL;
293293
}
294294
data->strm.avail_in = 0;
295295
data->strm.next_out = data->outbuf = (Bytef *) pemalloc(data->outbuf_len, persistent);
296296
if (!data->outbuf) {
297-
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %d bytes.", data->outbuf_len);
297+
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %ld bytes.", data->outbuf_len);
298298
pefree(data->inbuf, persistent);
299299
pefree(data, persistent);
300300
return NULL;

0 commit comments

Comments
 (0)