summaryrefslogtreecommitdiffstats
path: root/sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sprintf.c b/sprintf.c
index 16a8f61b9..c4fe2f21f 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -558,7 +558,8 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
{
VALUE val = GETARG();
VALUE tmp;
- int c, n;
+ unsigned int c;
+ int n;
tmp = rb_check_string_type(val);
if (!NIL_P(tmp)) {