Commit 365974c4 authored by Dennis Camera's avatar Dennis Camera

[__sensible_editor] Use int comparisons in version_ge

parent 9edf5e8f
......@@ -27,8 +27,9 @@ version_ge() {
nx = split($1, x, ".");
ny = split(target, y, ".");
for (i = 1; i <= max(nx, ny); ++i) {
if (x[i] < y[i]) exit 1;
else if (x[i] > y[i]) exit 0;
diff = int(x[i]) - int(y[i]);
if (diff < 0) exit 1;
else if (diff > 0) exit 0;
else continue;
}
}'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment