aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/seg.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-03-12 19:17:32 +0000
committerdos-reis <gdr@axiomatics.org>2011-03-12 19:17:32 +0000
commitc93e84048964194e5674e859d6bd8827010f09f6 (patch)
tree407ca23d232bf3f974550fce0175c49495ef49c0 /src/algebra/seg.spad.pamphlet
parent52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9 (diff)
downloadopen-axiom-c93e84048964194e5674e859d6bd8827010f09f6.tar.gz
* src/algebra/: Systematically use negative? when comparing for
greater than 0.
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