summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-31 00:36:12 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-31 00:36:12 (GMT)
commit0794c1da9325b51c627dab99ec2e7ff71a5bcdda (patch)
tree0c7aea1bc0698d507f4b1663fdd2f88e2ba20e2d /util.c
parentc57e8f7ddc816746e0541c26a3df6cdbd65ba435 (diff)
* util.c (ruby_add_suffix): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index a3fbd08..97b2d6c 100644
--- a/util.c
+++ b/util.c
@@ -277,7 +277,7 @@ ruby_add_suffix(VALUE str, const char *suffix)
name = StringValueCStr(str);
slen = strlen(name);
- if (slen > sizeof(buf) - 1)
+ if (slen > (long)(sizeof(buf) - 1))
rb_fatal("Cannot do inplace edit on long filename (%ld characters)",
slen);