summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2014-04-19 23:25:48 +0900
committertake_cheeze <[email protected]>2014-04-19 23:25:48 +0900
commit1ed9394078ca797af876e1c9dc4e8b28e5cd6d89 (patch)
tree1ba2196203b01c9b4dd560c9bd6eab6e2d5f8849
parente5368c006ad1f5f1dcf31ddb4093c45b5621a00c (diff)
downloadmruby-1ed9394078ca797af876e1c9dc4e8b28e5cd6d89.tar.gz
mruby-1ed9394078ca797af876e1c9dc4e8b28e5cd6d89.zip
Use boolean macro instead of integer literal in `is_debug_info_defined`.
-rw-r--r--src/dump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dump.c b/src/dump.c
index bdfa0787f..2691aab3d 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -722,11 +722,11 @@ is_debug_info_defined(mrb_irep *irep)
{
size_t i;
- if (!irep->debug_info) return 0;
+ if (!irep->debug_info) return FALSE;
for (i=0; i<irep->rlen; i++) {
- if (!is_debug_info_defined(irep->reps[i])) return 0;
+ if (!is_debug_info_defined(irep->reps[i])) return FALSE;
}
- return 1;
+ return TRUE;
}
static int