emitString: comparison between pointer and integer

This commit is contained in:
Peter De Wachter 2016-01-23 20:18:41 +01:00
parent deb5d06fba
commit 29f102cdf1

View File

@ -329,7 +329,7 @@ emitString(stringType *string)
nuls in strings, so to speak. We assume that the character 0xFF is not nuls in strings, so to speak. We assume that the character 0xFF is not
likely to be needed since ASCII (and ATASCII) is a seven bit character likely to be needed since ASCII (and ATASCII) is a seven bit character
code. */ code. */
while (*string != NULL) while (*string != 0)
if ((*string & 0xFF) == 0xFF) { if ((*string & 0xFF) == 0xFF) {
emitByte('\0'); emitByte('\0');
string++; string++;