Skip to content

Commit

Permalink
Fixed setting String::num_bytes_ to Fixnum.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Mar 16, 2016
1 parent fa207b4 commit bcd14db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine/capi/string.cpp
Expand Up @@ -185,7 +185,7 @@ extern "C" {
*store = 0;

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

Expand Down

0 comments on commit bcd14db

Please sign in to comment.