Revert inadvertent change.

This commit is contained in:
Dave Vernon 2024-02-01 09:25:49 -07:00
parent f7eff46e86
commit 947f0f8b52

View file

@ -2710,7 +2710,7 @@ getCStringE_c(GSStr self, char *buffer, unsigned int maxLength,
if (c > 127) if (c > 127)
{ {
[NSException raise: NSCharacterConversionException [NSException raise: NSCharacterConversionException
format: @"unable to convert to encoding (one)"]; format: @"unable to convert to encoding"];
} }
buffer[i] = c; buffer[i] = c;
} }
@ -2805,7 +2805,7 @@ getCStringE_u(GSStr self, char *buffer, unsigned int maxLength,
{ {
[NSException [NSException
raise:NSCharacterConversionException raise:NSCharacterConversionException
format:@"unable to convert to encoding (two)"]; format:@"unable to convert to encoding"];
} }
buffer[i] = (char)u; buffer[i] = (char)u;
} }
@ -2831,7 +2831,7 @@ getCStringE_u(GSStr self, char *buffer, unsigned int maxLength,
if (u & 0xff80) if (u & 0xff80)
{ {
[NSException raise: NSCharacterConversionException [NSException raise: NSCharacterConversionException
format: @"unable to convert to encoding (three)"]; format: @"unable to convert to encoding"];
} }
buffer[i] = (char)u; buffer[i] = (char)u;
} }