summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-29 12:22:04 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-29 12:22:04 (GMT)
commitbe7bf5aa0cd9a8e90dbaf268d53b8590fc23393d (patch)
treec7c9bb262103dc191b197b133d941ac997f1b41f /re.c
parente878df745ca89ecdb07090ad2bb99fd433dfc3a3 (diff)
adjust style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/re.c b/re.c
index 2bda099..36b89de 100644
--- a/re.c
+++ b/re.c
@@ -739,7 +739,7 @@ reg_named_captures_iter(const OnigUChar *name, const OnigUChar *name_end,
VALUE ary = rb_ary_new2(back_num);
int i;
- for(i = 0; i < back_num; i++)
+ for (i = 0; i < back_num; i++)
rb_ary_store(ary, i, INT2NUM(back_refs[i]));
rb_hash_aset(hash, rb_str_new((const char*)name, name_end-name),ary);
@@ -1046,7 +1046,7 @@ match_backref_number(VALUE match, VALUE backref)
VALUE regexp = RMATCH(match)->regexp;
match_check(match);
- switch(TYPE(backref)) {
+ switch (TYPE(backref)) {
default:
return NUM2INT(backref);