Commit 49bba6c9 authored by dearblue's avatar dearblue

Avoid comparing pointers and integers

parent e2ac2a82
...@@ -1493,7 +1493,7 @@ mrb_io_readchar(mrb_state *mrb, mrb_value self) ...@@ -1493,7 +1493,7 @@ mrb_io_readchar(mrb_state *mrb, mrb_value self)
#endif #endif
mrb_get_args(mrb, "S", &buf); mrb_get_args(mrb, "S", &buf);
mrb_assert(RSTRING_PTR(buf) > 0); mrb_assert(RSTRING_PTR(buf) != NULL);
mrb_str_modify(mrb, RSTRING(buf)); mrb_str_modify(mrb, RSTRING(buf));
#ifdef MRB_UTF8_STRING #ifdef MRB_UTF8_STRING
c = RSTRING_PTR(buf)[0]; c = RSTRING_PTR(buf)[0];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment