From 852a213e1cee6a2d32531b7cc8ed6b67ea65d0d4 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Tue, 9 Jan 2018 20:30:25 +0800 Subject: [PATCH] fix find bitmap float args --- robotgo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robotgo.go b/robotgo.go index 8460d8a..7b1c583 100644 --- a/robotgo.go +++ b/robotgo.go @@ -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 }