mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-02 02:58:01 +02:00
Corrected an issue found by Harald Pretl and solved by Claude.
Use of "char" does *not* implicitly mean "signed" on ARM architectures.
This commit is contained in:
+2
-2
@@ -770,7 +770,7 @@ drcTile (tile, dinfo, arg)
|
||||
PropertyRecord *proprec;
|
||||
bool propfound, isinside = FALSE;
|
||||
char *name;
|
||||
char idx = cptr->drcc_exception;
|
||||
signed char idx = cptr->drcc_exception;
|
||||
if (idx < 0) idx = -idx - 1;
|
||||
name = DRCCurStyle->DRCExceptionList[idx];
|
||||
|
||||
@@ -1216,7 +1216,7 @@ drcTile (tile, dinfo, arg)
|
||||
PropertyRecord *proprec;
|
||||
bool propfound, isinside = FALSE;
|
||||
char *name;
|
||||
char idx = cptr->drcc_exception;
|
||||
signed char idx = cptr->drcc_exception;
|
||||
if (idx < 0) idx = -idx - 1;
|
||||
name = DRCCurStyle->DRCExceptionList[idx];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user