aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-15 05:19:58 +0000
committersvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-15 05:19:58 +0000
commitd4f7fac6b8ba975b50c4144168f656454c92724b (patch)
tree3e187ef14115b91ecc9e9394fb7a0ebfb0e3061d
parentc36a6f97f243778d3eb8e973eba89ce2b424b707 (diff)
downloadruby-d4f7fac6b8ba975b50c4144168f656454c92724b.tar.gz
* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--compile.c2
-rw-r--r--node.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/compile.c b/compile.c
index aa5551d5cc..4b4b200685 100644
--- a/compile.c
+++ b/compile.c
@@ -3801,7 +3801,7 @@ compile_keyword_arg(rb_iseq_t *iseq, LINK_ANCHOR *const ret,
assert(nd_type(node) == NODE_ARRAY);
if (!key_node) {
- if (flag && !root_node->nd_brace) *flag |= VM_CALL_KW_SPLAT;
+ if (flag && !root_node->nd_brace) *flag |= VM_CALL_KW_SPLAT;
return FALSE;
}
else if (nd_type(key_node) == NODE_LIT && RB_TYPE_P(key_node->nd_lit, T_SYMBOL)) {
diff --git a/node.c b/node.c
index 9196280d56..74a7b63644 100644
--- a/node.c
+++ b/node.c
@@ -557,7 +557,7 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
return;
case NODE_HASH:
- if (!node->nd_brace) {
+ if (!node->nd_brace) {
ANN("keyword arguments");
ANN("format: nd_head");
ANN("example: a: 1, b: 2");
@@ -567,8 +567,8 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
ANN("format: { [nd_head] }");
ANN("example: { 1 => 2, 3 => 4 }");
}
- F_CUSTOM1(nd_brace, "keyword arguments or hash literal") {
- switch (node->nd_brace) {
+ F_CUSTOM1(nd_brace, "keyword arguments or hash literal") {
+ switch (node->nd_brace) {
case 0: A("0 (keyword argument)"); break;
case 1: A("1 (hash literal)"); break;
}