From c373ad7aa67ea47876a9f9358305d5488d6f24ff Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sat, 9 Apr 2022 14:55:22 -0400 Subject: [EXEC] Fixed one bug with pointers ~ They're probably still buggy though --- src/texec/eval.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/texec') diff --git a/src/texec/eval.go b/src/texec/eval.go index be02e84..4d4785d 100644 --- a/src/texec/eval.go +++ b/src/texec/eval.go @@ -695,9 +695,8 @@ func isStruct(t TType, skp int) bool { } func isPointer(t TType, skp int) bool { - for ;skp < len(t.Pre) && t.Pre[skp] == "const"; skp++ {} - if len(t.Pre) >= skp { + if len(t.Pre) <= skp { return false } -- cgit v1.2.3