aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/seg.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/seg.spad.pamphlet')
-rw-r--r--src/algebra/seg.spad.pamphlet6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/algebra/seg.spad.pamphlet b/src/algebra/seg.spad.pamphlet
index 19a475a4..c0795e9e 100644
--- a/src/algebra/seg.spad.pamphlet
+++ b/src/algebra/seg.spad.pamphlet
@@ -153,7 +153,7 @@ Segment(S:Type): SegmentCategory(S) with
h := hi s
inc := (incr s)::S
zero? inc => error "Cannot expand a segment with an increment of zero"
- if inc > 0 then
+ if positive? inc then
while l <= h repeat
lr := concat(l, lr)
l := l + inc
@@ -169,7 +169,7 @@ Segment(S:Type): SegmentCategory(S) with
l := lo s
h := hi s
inc := (incr s)::S
- if inc > 0 then
+ if positive? inc then
while l <= h repeat
lr := concat(f l, lr)
l := l + inc
@@ -225,7 +225,7 @@ SegmentFunctions2(R:Type, S:Type): public == private where
l := lo r
h := hi r
inc := (incr r)::R
- if inc > 0 then
+ if positive? inc then
while l <= h repeat
lr := concat(f(l), lr)
l := l + inc