fix find bitmap float args

This commit is contained in:
vcaesar 2018-01-09 20:30:25 +08:00
parent 9f0400167b
commit 852a213e1c

View File

@ -732,7 +732,7 @@ func FindBitmap(args ...interface{}) (int, int) {
}
if len(args) > 2 {
tolerance = C.float(args[2].(float32))
tolerance = C.float(args[2].(float64))
} else {
tolerance = 0.5
}
@ -759,7 +759,7 @@ func FindEveryBitmap(args ...interface{}) (int, int) {
}
if len(args) > 2 {
tolerance = C.float(args[2].(float32))
tolerance = C.float(args[2].(float64))
} else {
tolerance = 0.5
}