ext/oj/dump_leaf.c in oj-3.6.9 vs ext/oj/dump_leaf.c in oj-3.6.10
- old
+ new
@@ -51,10 +51,10 @@
switch (leaf->value_type) {
case STR_VAL:
oj_dump_cstr(leaf->str, strlen(leaf->str), 0, 0, out);
break;
case RUBY_VAL:
- oj_dump_cstr(rb_string_value_cstr(&leaf->value), RSTRING_LEN(leaf->value), 0, 0, out);
+ oj_dump_cstr(rb_string_value_cstr(&leaf->value), (int)RSTRING_LEN(leaf->value), 0, 0, out);
break;
case COL_VAL:
default:
rb_raise(rb_eTypeError, "Unexpected value type %02x.\n", leaf->value_type);
break;