summaryrefslogtreecommitdiffhomepage
path: root/src/debug.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-04-03 16:56:27 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-04-03 16:56:27 +0900
commit77331d127b6ab202e703bd7297ab6aabf4a314e9 (patch)
treee86c5ee7c9f4a5a867d63745607f525116b84d19 /src/debug.c
parentfbf4089d2f9480b5f5c9b8cdc312ad5e8417f62e (diff)
downloadmruby-77331d127b6ab202e703bd7297ab6aabf4a314e9.tar.gz
mruby-77331d127b6ab202e703bd7297ab6aabf4a314e9.zip
Unify `else` clause style
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/debug.c b/src/debug.c
index cc2d37034..d2bcd7d5e 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -19,7 +19,8 @@ get_file(mrb_irep_debug_info *info, uint32_t pc)
if (!(pc < (*it)->start_pos)) {
ret = it + 1;
count -= step + 1;
- } else { count = step; }
+ }
+ else { count = step; }
}
--ret;
@@ -86,7 +87,8 @@ mrb_debug_get_line(mrb_irep *irep, uint32_t pc)
if (!(pc < it->start_pos)) {
ret = it + 1;
count -= step + 1;
- } else { count = step; }
+ }
+ else { count = step; }
}
--ret;