Skip to content

Commit 400dbfd

Browse files
committed
Fix warning.
1 parent d11edbd commit 400dbfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swoole_buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static PHP_METHOD(swoole_buffer, __construct)
117117
swString *buffer = swString_new(size);
118118
if (buffer == NULL)
119119
{
120-
zend_throw_exception_ex(swoole_exception_ce_ptr, errno, "malloc(%ld) failed.", size);
120+
zend_throw_exception_ex(swoole_exception_ce_ptr, errno, "malloc(" ZEND_LONG_FMT ") failed.", size);
121121
RETURN_FALSE;
122122
}
123123

0 commit comments

Comments
 (0)