From b312efa57bd21ccc3d48b9e313209d9dac1db3ef Mon Sep 17 00:00:00 2001 From: Alex Martin Date: Sun, 15 Oct 2017 17:30:49 +0200 Subject: [PATCH] bug-fix: append new symbol to last one --- source/compiler/sc2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/compiler/sc2.c b/source/compiler/sc2.c index b41864d..9aad325 100644 --- a/source/compiler/sc2.c +++ b/source/compiler/sc2.c @@ -2662,6 +2662,8 @@ static symbol *add_symbol(symbol *root,symbol *entry,int sort) } /* if */ new_cache_sym->symbol=newsym; new_cache_sym->next=NULL; + while(cache_sym->next!=NULL) + cache_sym=cache_sym->next; cache_sym->next=new_cache_sym; } }