Fix Pow - input should be uint for proper int literal conversion

This commit is contained in:
mratsim 2018-04-03 15:15:03 +02:00
parent 389da7588f
commit 974a6eba54
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ proc pow*(a: Int, b: int): Int =
tmp.inplacePow(initInt[Int](b))
result = tmp
proc pow*(a: UInt, b: int): UInt =
proc pow*(a: UInt, b: uint): UInt =
var tmp = a
tmp.inplacePow(initUInt[UInt](b))
result = tmp