Map string to char conversion to unsigned byte range
Build / AerScript (push) Successful in 12s

This commit is contained in:
2026-11-23 22:47:23 +01:00
parent b2e3d42f31
commit 948487fd31
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -365,7 +365,7 @@ static ph7_real MemObjCharValue(ph7_value *pObj) {
/* Empty string */
return 0;
}
return (int) sString.zString[0];
return (int)(unsigned char) sString.zString[0];
}
/* NOT REACHED */
return 0;