aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/string.c b/string.c
index eb41c0db10..457ac6d54c 100644
--- a/string.c
+++ b/string.c
@@ -5914,7 +5914,8 @@ rb_str_justify(int argc, VALUE *argv, VALUE str, char jflag)
VALUE w;
long width, len, flen = 1, fclen = 1;
VALUE res;
- char *p, *f = " ";
+ char *p;
+ const char *f = " ";
long n, llen, rlen;
volatile VALUE pad;
int singlebyte = 1;