]> Nishi Git Mirror - gwion.git/commitdiff
:art: Clean cpy_ast
authorfennecdjay <astor.jeremie@wanadoo.fr>
Fri, 11 Oct 2019 00:14:17 +0000 (02:14 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Fri, 11 Oct 2019 00:14:17 +0000 (02:14 +0200)
src/parse/cpy_ast.c

index 74ef7f83f2f885ef1c49e007058ddb68aa1b6b09..4337474e821879f923ea810600cd7f1ac2b3b31e 100644 (file)
@@ -286,8 +286,7 @@ ANN static void cpy_stmt_auto(MemPool p, Stmt_Auto a, const Stmt_Auto src) {
     a->exp = cpy_exp(p, src->exp);
   if(src->body)
     a->body = cpy_stmt(p, src->body);
-  if(src->is_ptr)
-    a->is_ptr = src->is_ptr; 
+  a->is_ptr = src->is_ptr;
 }
 
 ANN static void cpy_stmt_loop(MemPool p, Stmt_Loop a, const Stmt_Loop src) {