ext/sleepy_penguin/value2timespec.h in sleepy_penguin-3.2.0 vs ext/sleepy_penguin/value2timespec.h in sleepy_penguin-3.3.0
- old
+ new
@@ -40,11 +40,11 @@
rb_raise(rb_eRangeError, "%f out of range", orig);
return ts;
}}
{
VALUE tmp = rb_inspect(num);
- rb_raise(rb_eTypeError, "can't convert %s into timespec",
- StringValuePtr(tmp));
+ const char *str = StringValueCStr(tmp);
+ rb_raise(rb_eTypeError, "can't convert %s into timespec", str);
}
rb_bug("rb_raise() failed, timespec failed");
return NULL;
}