summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-04-20 22:31:58 +0900
committerYukihiro Matsumoto <[email protected]>2012-04-20 22:31:58 +0900
commit41bf311cd1997ad2d20d451fe627b241aed571d3 (patch)
tree7a4bbfa90e106e4be73a449aa3b897a3a0adc691 /src/string.c
parent5622c977f441a91a7482d5956df96e60d71d90f9 (diff)
downloadmruby-41bf311cd1997ad2d20d451fe627b241aed571d3.tar.gz
mruby-41bf311cd1997ad2d20d451fe627b241aed571d3.zip
remove dependency to SIZEOF_INT
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/string.c b/src/string.c
index 9556f93e8..6b8861ace 100644
--- a/src/string.c
+++ b/src/string.c
@@ -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);