mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #6405 from ArtSin/io_read-fix-mrb_raisef-arg
This commit is contained in:
@@ -1679,7 +1679,7 @@ io_read(mrb_state *mrb, mrb_value io)
|
||||
else {
|
||||
length = mrb_as_int(mrb, len);
|
||||
if (length < 0) {
|
||||
mrb_raisef(mrb, E_ARGUMENT_ERROR, "negative length %d given", length);
|
||||
mrb_raisef(mrb, E_ARGUMENT_ERROR, "negative length %i given", length);
|
||||
}
|
||||
if (length == 0) {
|
||||
return io_reset_outbuf(mrb, outbuf, 0);
|
||||
|
||||
Reference in New Issue
Block a user