diff options
| author | Masaki Muranaka <[email protected]> | 2013-01-15 09:03:56 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-01-15 09:03:56 +0900 |
| commit | 583055305424d1e99492791ddb29364d2635468c (patch) | |
| tree | 20fec8406bf616204c12dc29e9637cdb2373443e | |
| parent | 90cdb90e679aea57784f964ff464b411cc79076d (diff) | |
| download | mruby-583055305424d1e99492791ddb29364d2635468c.tar.gz mruby-583055305424d1e99492791ddb29364d2635468c.zip | |
Use MRB_DUMP_OK instead of 0.
| -rw-r--r-- | src/dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dump.c b/src/dump.c index 2885c225a..2d70c2802 100644 --- a/src/dump.c +++ b/src/dump.c @@ -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++) { rc = write_irep_record(mrb, irep_no, bin, &rlen, DUMP_TYPE_BIN); - if (rc != 0) + if (rc != MRB_DUMP_OK) return rc; 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) for (irep_no=top; irep_no<mrb->irep_len; irep_no++) { rc = dump_irep_record(mrb, irep_no, fp, &rlen); - if (rc != 0) + if (rc != MRB_DUMP_OK) return rc; rbds += rlen; |
