summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/Unknwon/com/math.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/Unknwon/com/math.go')
-rw-r--r--vendor/github.com/Unknwon/com/math.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/Unknwon/com/math.go b/vendor/github.com/Unknwon/com/math.go
index 99c56b6594..62b77e87c8 100644
--- a/vendor/github.com/Unknwon/com/math.go
+++ b/vendor/github.com/Unknwon/com/math.go
@@ -14,12 +14,12 @@
package com
-// PowInt is int type of math.Pow function.
+// PowInt is int type of math.Pow function.
func PowInt(x int, y int) int {
if y <= 0 {
return 1
} else {
- if y % 2 == 0 {
+ if y%2 == 0 {
sqrt := PowInt(x, y/2)
return sqrt * sqrt
} else {