Commit 58305530 authored by Masaki Muranaka's avatar Masaki Muranaka

Use MRB_DUMP_OK instead of 0.

parent 90cdb90e
...@@ -689,7 +689,7 @@ mrb_write_irep(mrb_state *mrb, int top, char *bin) ...@@ -689,7 +689,7 @@ mrb_write_irep(mrb_state *mrb, int top, char *bin)
for (irep_no=top; irep_no<mrb->irep_len; irep_no++) { for (irep_no=top; irep_no<mrb->irep_len; irep_no++) {
rc = write_irep_record(mrb, irep_no, bin, &rlen, DUMP_TYPE_BIN); rc = write_irep_record(mrb, irep_no, bin, &rlen, DUMP_TYPE_BIN);
if (rc != 0) if (rc != MRB_DUMP_OK)
return rc; return rc;
bin += (rlen + DUMP_SIZE(MRB_DUMP_SIZE_OF_LONG, DUMP_TYPE_BIN)); bin += (rlen + DUMP_SIZE(MRB_DUMP_SIZE_OF_LONG, DUMP_TYPE_BIN));
...@@ -718,7 +718,7 @@ mrb_dump_irep(mrb_state *mrb, int top, FILE* fp) ...@@ -718,7 +718,7 @@ mrb_dump_irep(mrb_state *mrb, int top, FILE* fp)
for (irep_no=top; irep_no<mrb->irep_len; irep_no++) { for (irep_no=top; irep_no<mrb->irep_len; irep_no++) {
rc = dump_irep_record(mrb, irep_no, fp, &rlen); rc = dump_irep_record(mrb, irep_no, fp, &rlen);
if (rc != 0) if (rc != MRB_DUMP_OK)
return rc; return rc;
rbds += rlen; rbds += rlen;
......
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