Permalink
Browse files

RUBY-567 cast VALUE to char * to avoid warning

  • Loading branch information...
1 parent 366a931 commit 0eebdf1ec6259b3eb062a68f128d72b3ecbc254f @TylerBrock TylerBrock committed Mar 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/cbson/cbson.c
View
@@ -959,7 +959,7 @@ static VALUE objectid_from_string(VALUE self, VALUE str)
} else {
VALUE inspect;
inspect = rb_funcall(str, rb_intern("to_s"), 0);
- rb_raise(InvalidObjectId, "not a String: %s", inspect);
+ rb_raise(InvalidObjectId, "not a String: %s", (char *)inspect);
}
}

0 comments on commit 0eebdf1

Please sign in to comment.