mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
remove dependency to SIZEOF_INT
This commit is contained in:
+3
-3
@@ -4833,9 +4833,9 @@ mrb_str_buf_cat_escaped_char(mrb_state *mrb, mrb_value result, unsigned int c, i
|
||||
char buf[CHAR_ESC_LEN + 1];
|
||||
int l;
|
||||
|
||||
#if SIZEOF_INT > 4
|
||||
c &= 0xffffffff;
|
||||
#endif
|
||||
if (sizeof(c) > 4) {
|
||||
c &= 0xffffffff;
|
||||
}
|
||||
if (unicode_p) {
|
||||
if (c < 0x7F && ISPRINT(c)) {
|
||||
snprintf(buf, CHAR_ESC_LEN, "%c", c);
|
||||
|
||||
Reference in New Issue
Block a user