summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-02-18 14:30:43 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2020-02-18 14:31:45 +0000
commit1a05e3a4ad8c8948465e22509b356e191b90789a (patch)
tree1a32b1f1d50bf376359b83d134d3497f02979880 /eclass/portability.eclass
parentdev-db/libzdb: drop lexicographical comparison, bug #705244 (diff)
downloadgentoo-1a05e3a4ad8c8948465e22509b356e191b90789a.tar.gz
gentoo-1a05e3a4ad8c8948465e22509b356e191b90789a.tar.bz2
gentoo-1a05e3a4ad8c8948465e22509b356e191b90789a.zip
portability.eclass: avoid lexicographic number comparison, bug #705250
Closes: https://bugs.gentoo.org/705250 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/portability.eclass')
-rw-r--r--eclass/portability.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/portability.eclass b/eclass/portability.eclass
index c56f03fb8763..1402c0420cb0 100644
--- a/eclass/portability.eclass
+++ b/eclass/portability.eclass
@@ -67,8 +67,8 @@ seq() {
# Screw it, do the output ourselves
while :; do
- [[ $max < $min && $step > 0 ]] && break
- [[ $min < $max && $step < 0 ]] && break
+ [[ $max -lt $min && $step -gt 0 ]] && break
+ [[ $min -lt $max && $step -gt 0 ]] && break
echo $min
: $(( min += step ))
done