hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 613b5ec3fe64a7ac8d7739d621d35b262b166e63
parent 0d10b8722881d8de1bd8e05888d5b3c84436c147
Author: Alexey Yerin <yyp@disroot.org>
Date:   Mon, 25 Apr 2022 21:47:38 +0300

hare::types: fix tagged union sorting regression

Due to a wrong vtable of hash::fnv::fnv32a(), the order of items was
wrong and caused this test to fail.

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Mhare/types/+test.ha | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/hare/types/+test.ha b/hare/types/+test.ha @@ -332,7 +332,7 @@ fn resolve( assert(htype.align == 8); let t = htype.repr as tagged; assert(len(t) == 3); - assert(t[0].repr as builtin == builtin::STR); - assert(t[1].repr as builtin == builtin::INT); - assert(t[2].repr as builtin == builtin::VOID); + assert(t[0].repr as builtin == builtin::INT); + assert(t[1].repr as builtin == builtin::VOID); + assert(t[2].repr as builtin == builtin::STR); };