Skip to content

Commit 2bb7b44

Browse files
committed
Update config.h: Change typedef for schar to signed char for ARM64 compatibility
1 parent eff409b commit 2bb7b44

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/config.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@
106106
* will do when you have signed characters; otherwise use
107107
* typedef short int schar;
108108
*/
109-
typedef char schar;
109+
/* Modern: use 'signed char' explicitly — on aarch64 (ARM64) plain 'char' is
110+
* unsigned by default, which broke the rooms[] sentinel check (hx < 0 was
111+
* never true) and caused a segfault during level generation. */
112+
typedef signed char schar;
110113

111114
/*
112115
* small unsigned integers (8 bits suffice - but 7 bits do not)

windows/pdcurses

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 993542b44f5d3e5a13ddbd223880960aa755344e

0 commit comments

Comments
 (0)