summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index 1f0cf2736e..4ac38bc0f7 100644
--- a/time.c
+++ b/time.c
@@ -1382,7 +1382,7 @@ time_load(klass, str)
int i;
StringValue(str);
- buf = RSTRING(str)->ptr;
+ buf = (unsigned char *)RSTRING(str)->ptr;
if (RSTRING(str)->len != 8) {
rb_raise(rb_eTypeError, "marshaled time format differ");
}