diff options
author | Yusuke Endoh <[email protected]> | 2024-12-04 13:23:02 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2024-12-04 13:59:54 +0900 |
commit | c0454abdee127fcf5c6952ae1cebed57401d9044 (patch) | |
tree | 9282edd16707227999ee33c2be2f908885b59c0f /vm_args.c | |
parent | 56576b6cce73a97990e16148250d1ac9357a1bed (diff) |
Remove meaningless comma expression
Coverity Scan alerts `for(i, j=0;...)` as a misuse of comma expression.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12256
Diffstat (limited to 'vm_args.c')
-rw-r--r-- | vm_args.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -579,7 +579,7 @@ flatten_rest_args(rb_execution_context_t * const ec, struct args_info *args, VAL args->argc += rest_len; if (rest_len) { CHECK_VM_STACK_OVERFLOW(ec->cfp, rest_len+1); - for (i, j=0; rest_len > 0; rest_len--, i++, j++) { + for (j=0; rest_len > 0; rest_len--, i++, j++) { locals[i] = argv[j]; } } |