aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-07-07 15:02:09 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-07-07 15:02:09 -0300
commit03d672a95cfd287855b373587f3975165eab9e02 (patch)
treeccaf9a66b54ab44d660d5257f3df649bb79664ad /lobject.c
parent03bf7fdd4f3a588cd7ff0a8c51ed68c596d3d575 (diff)
downloadlua-03d672a95cfd287855b373587f3975165eab9e02.tar.gz
lua-03d672a95cfd287855b373587f3975165eab9e02.tar.bz2
lua-03d672a95cfd287855b373587f3975165eab9e02.zip
Details (comments)
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lobject.c b/lobject.c
index 1c32ecf7..5c270b27 100644
--- a/lobject.c
+++ b/lobject.c
@@ -385,7 +385,7 @@ size_t luaO_str2num (const char *s, TValue *o) {
385int luaO_utf8esc (char *buff, l_uint32 x) { 385int luaO_utf8esc (char *buff, l_uint32 x) {
386 int n = 1; /* number of bytes put in buffer (backwards) */ 386 int n = 1; /* number of bytes put in buffer (backwards) */
387 lua_assert(x <= 0x7FFFFFFFu); 387 lua_assert(x <= 0x7FFFFFFFu);
388 if (x < 0x80) /* ascii? */ 388 if (x < 0x80) /* ASCII? */
389 buff[UTF8BUFFSZ - 1] = cast_char(x); 389 buff[UTF8BUFFSZ - 1] = cast_char(x);
390 else { /* need continuation bytes */ 390 else { /* need continuation bytes */
391 unsigned int mfb = 0x3f; /* maximum that fits in first byte */ 391 unsigned int mfb = 0x3f; /* maximum that fits in first byte */