qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit bdaf8d374e5054c7f0a006f6bc038ee08d165fd3
parent 0715a395dfb50d890043df718959cd9229de226f
Author: Ember Sawady <ecs@d2evs.net>
Date:   Wed, 14 Sep 2022 12:20:28 +0000

Fix parsing of multiple globals in datadef

Eg. data $a = { w $b $c }

Diffstat:
Mparse.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parse.c b/parse.c @@ -1049,7 +1049,7 @@ parsedat(void cb(Dat *), Lnk *lnk) err("constant literal expected"); cb(&d); t = nextnl(); - } while (t == Tint || t == Tflts || t == Tfltd || t == Tstr); + } while (t == Tint || t == Tflts || t == Tfltd || t == Tstr || t == Tglo); if (t == Trbrace) break; if (t != Tcomma)