From 69b7d011d8cae9b52cf0481037cbec46a8c500ac Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Thu, 26 Mar 2020 03:20:10 +0100 Subject: [PATCH] Explicitly declare the char as signed in zend_ffi_val. This causes issues down the line as char are unsigned on some platforms, e.g. ARM and cause a [-Wtype-limits] warning to be emitted. --- ext/ffi/php_ffi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ffi/php_ffi.h b/ext/ffi/php_ffi.h index fc6120de79..3a10b45478 100644 --- a/ext/ffi/php_ffi.h +++ b/ext/ffi/php_ffi.h @@ -198,7 +198,7 @@ typedef struct _zend_ffi_val { uint64_t u64; int64_t i64; zend_ffi_double d; - char ch; + signed char ch; struct { const char *str; size_t len; -- 2.50.1