Details (comments)

This commit is contained in:
Roberto Ierusalimschy
2025-07-07 15:02:09 -03:00
parent 03bf7fdd4f
commit 03d672a95c
5 changed files with 8 additions and 8 deletions

View File

@@ -385,7 +385,7 @@ size_t luaO_str2num (const char *s, TValue *o) {
int luaO_utf8esc (char *buff, l_uint32 x) {
int n = 1; /* number of bytes put in buffer (backwards) */
lua_assert(x <= 0x7FFFFFFFu);
if (x < 0x80) /* ascii? */
if (x < 0x80) /* ASCII? */
buff[UTF8BUFFSZ - 1] = cast_char(x);
else { /* need continuation bytes */
unsigned int mfb = 0x3f; /* maximum that fits in first byte */