Skip to content

Commit d087241

Browse files
authored
Merge pull request #44 from Bytom/fix_chain_arg_list
fix_chain_arg_list
2 parents 3517a6e + e7c5c7c commit d087241

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

a.go

Whitespace-only changes.

compiler/create.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ ArgumentList *chain_argument_list(ArgumentList *list, Expression *expr)
100100
return next;
101101
}
102102

103-
list->next = next;
103+
ArgumentList *pos;
104+
for (pos = list; pos->next; pos = pos->next)
105+
;
106+
107+
pos->next = next;
104108
return list;
105109
}
106110

0 commit comments

Comments
 (0)