diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-07-07 15:02:09 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-07-07 15:02:09 -0300 |
| commit | 03d672a95cfd287855b373587f3975165eab9e02 (patch) | |
| tree | ccaf9a66b54ab44d660d5257f3df649bb79664ad /lobject.c | |
| parent | 03bf7fdd4f3a588cd7ff0a8c51ed68c596d3d575 (diff) | |
| download | lua-03d672a95cfd287855b373587f3975165eab9e02.tar.gz lua-03d672a95cfd287855b373587f3975165eab9e02.tar.bz2 lua-03d672a95cfd287855b373587f3975165eab9e02.zip | |
Details (comments)
Diffstat (limited to '')
| -rw-r--r-- | lobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -385,7 +385,7 @@ size_t luaO_str2num (const char *s, TValue *o) { | |||
| 385 | int luaO_utf8esc (char *buff, l_uint32 x) { | 385 | int 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 */ |
