Skip to content

Commit 3c62bd1

Browse files
committed
struct_test: use explicit signed char for Array4Chars field
Changes the Array4Chars struct field from char to signed char to ensure consistent signedness across platforms. The signedness of plain char is implementation-defined and can vary between compilers and platforms, potentially causing test inconsistencies. Using signed char makes the signedness explicit and ensures consistent behavior in struct marshalling tests across Darwin and Linux platforms.
1 parent a2cc070 commit 3c62bd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testdata/structtest/struct_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ unsigned int Array2UnsignedShorts(struct Array2UnsignedShort a) {
280280
}
281281

282282
struct Array4Chars {
283-
char a[4];
283+
signed char a[4];
284284
};
285285

286286
int Array4Chars(struct Array4Chars a) {

0 commit comments

Comments
 (0)