summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/mathutil/rat.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/modernc.org/mathutil/rat.go')
-rw-r--r--vendor/modernc.org/mathutil/rat.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/vendor/modernc.org/mathutil/rat.go b/vendor/modernc.org/mathutil/rat.go
index 2f3742f72..a4829ec19 100644
--- a/vendor/modernc.org/mathutil/rat.go
+++ b/vendor/modernc.org/mathutil/rat.go
@@ -6,10 +6,9 @@ package mathutil // import "modernc.org/mathutil"
// QCmpUint32 compares a/b and c/d and returns:
//
-// -1 if a/b < c/d
-// 0 if a/b == c/d
-// +1 if a/b > c/d
-//
+// -1 if a/b < c/d
+// 0 if a/b == c/d
+// +1 if a/b > c/d
func QCmpUint32(a, b, c, d uint32) int {
switch x, y := uint64(a)*uint64(d), uint64(b)*uint64(c); {
case x < y: