diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-04-09 14:55:22 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-04-09 14:55:22 -0400 |
commit | c373ad7aa67ea47876a9f9358305d5488d6f24ff (patch) | |
tree | 67e2c251634c8c6999cab504d8d91b1c532acd98 /src | |
parent | 85bd9dcb9f66c23c17c6590ad5eb56d292f1c0ac (diff) |
[EXEC] Fixed one bug with pointers
~ They're probably still buggy though
Diffstat (limited to 'src')
-rw-r--r-- | src/texec/eval.go | 3 |
1 files changed, 1 insertions, 2 deletions
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 } |