summaryrefslogtreecommitdiffhomepage
path: root/src/codegen.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-04-25 02:33:33 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-04-25 02:33:33 +0900
commit320f0711f08c54b709fccfbc07ba696e26c1a717 (patch)
treedac12190981e11698366dac103fc894223382de6 /src/codegen.c
parentd95c42eefdc3613aef54fb80dc2a0b49d5107bad (diff)
downloadmruby-320f0711f08c54b709fccfbc07ba696e26c1a717.tar.gz
mruby-320f0711f08c54b709fccfbc07ba696e26c1a717.zip
remove -Wsign-compare warnings
Diffstat (limited to 'src/codegen.c')
-rw-r--r--src/codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.c b/src/codegen.c
index a36d609c6..d8fd52665 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -719,7 +719,7 @@ attrsym(codegen_scope *s, mrb_sym a)
+ 1 /* '=' */
+ 1 /* '\0' */
);
- mrb_assert(len <= SIZE_MAX);
+ mrb_assert(len > 0);
memcpy(name2, name, (size_t)len);
name2[len] = '=';
name2[len+1] = '\0';