aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/sam/rasp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/sam/rasp.c')
-rw-r--r--src/cmd/sam/rasp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/sam/rasp.c b/src/cmd/sam/rasp.c
index c96101df..55d16cfb 100644
--- a/src/cmd/sam/rasp.c
+++ b/src/cmd/sam/rasp.c
@@ -283,8 +283,8 @@ rterm(List *r, Posn p1)
for(p = 0,i = 0; i<r->nused && p+L(i)<=p1; p+=L(i++))
;
- if(i==r->nused && (i==0 || !T(i-1)))
- return 0;
+ if(i==r->nused)
+ return i > 0 && T(i-1);
return T(i);
}