]> Nishi Git Mirror - serenade.git/commitdiff
h
authornishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Tue, 23 Apr 2024 06:23:31 +0000 (06:23 +0000)
committernishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Tue, 23 Apr 2024 06:23:31 +0000 (06:23 +0000)
git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@17 0f02c867-ac3d-714e-8a88-971ba1f6efcf

Serenade/parser.c

index a3ae6a215b0116910eac03d8c30348e74f88ef2b..e7c72facb24a0475cb5a8141dbd30d99c363901b 100644 (file)
@@ -115,8 +115,8 @@ struct sn_generic* sn_expr_parse(char* data, unsigned long long size){
                        if(br > 0){
                                gn_stack[br - 1]->tree->op->name = sn_strdup(op_stack[br - 1]);
                        }
+                       PUSH_STACK(br - 1);
                        br_stack[br - 1] = 0;
-                       PUSH_STACK(br - 2);
                        if(br_stack[br - 2] > 0){
                                int j;
                                struct sn_generic** old_args = gn_stack[br - 2]->tree->args;