summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
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);