Skip to content

Commit bcd14db

Browse files
committedMar 16, 2016
Fixed setting String::num_bytes_ to Fixnum.
1 parent fa207b4 commit bcd14db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎machine/capi/string.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ extern "C" {
185185
*store = 0;
186186

187187
String* str = c_as<String>(env->get_object(s));
188-
str->num_bytes(env->state(), 0);
188+
str->num_bytes(env->state(), Fixnum::from(0));
189189
str->data(env->state(), ByteArray::create(env->state(), 1));
190190
}
191191

0 commit comments

Comments
 (0)
Please sign in to comment.