From 3526757d97dd700461053ff27a3eb72820f6a890 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 10 Oct 2019 00:43:09 +0200 Subject: [PATCH] Revert ":bug: Fix match map" This reverts commit 698ea5a5d6279f489d8888d5f0615ea7195a4a57. --- include/match.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/match.h b/include/match.h index d28f5381..dbdb6a2f 100644 --- a/include/match.h +++ b/include/match.h @@ -7,13 +7,11 @@ struct Match_ { ANN static inline void match_map(struct Match_ * const match, Exp e) { const Map map = &match->map; - Exp next = NULL; map_init(map); do { - next = e->next; e->next = NULL; map_set(map, (vtype)e, 0); - } while((e = next)); + } while((e = e->next)); } ANN static inline void match_unmap(struct Match_ * const match) { -- 2.43.0