From 6e88f19346236aad75779c9d91fffe4987786894 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Thu, 26 Mar 2020 03:20:10 +0100 Subject: 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 913d63ecd0..1b51a832c9 100644 --- a/ext/ffi/php_ffi.h +++ b/ext/ffi/php_ffi.h @@ -200,7 +200,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; -- cgit v1.2.1