git » unicorn-sparkle-basic.git » commit 9055735

rm extra parens

author Alan Dipert
2024-01-07 06:36:09 UTC
committer Alan Dipert
2024-01-07 06:36:09 UTC
parent 2f0007ba688d268294aa3c84c31257bb73449144

rm extra parens

ast.c +1 -1

diff --git a/ast.c b/ast.c
index 9e203a4..f403fb0 100644
--- a/ast.c
+++ b/ast.c
@@ -5,7 +5,7 @@ struct node_tag* ast_last_numbered_line;
 
 static struct node_tag* ast_alloc(enum NODE_TYPE node_type) {
   struct node_tag *new_node = malloc(sizeof(struct node_tag));
-  if ((new_node) == NULL) {
+  if (new_node == NULL) {
     fprintf(stderr, "Memory allocation failed at %s:%d\n", __FILE__, __LINE__);
     exit(EXIT_FAILURE);
   }