summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/texec/eval.go3
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
}