Skip to content

Commit 6e88f19

Browse files
Girgiasdstogov
authored andcommitted
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.
1 parent 91ee85c commit 6e88f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ffi/php_ffi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ typedef struct _zend_ffi_val {
200200
uint64_t u64;
201201
int64_t i64;
202202
zend_ffi_double d;
203-
char ch;
203+
signed char ch;
204204
struct {
205205
const char *str;
206206
size_t len;

0 commit comments

Comments
 (0)