From b5f3ccb41feb4725fb1561c1a3e159f707ec2b89 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sun, 29 Jul 2018 23:33:19 +0800 Subject: [PATCH] update getPid type to int32 --- robotgo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robotgo.go b/robotgo.go index da078be..83acb42 100644 --- a/robotgo.go +++ b/robotgo.go @@ -1322,9 +1322,9 @@ func GetTitle() string { } // GetPID get the process id -func GetPID() int { +func GetPID() int32 { pid := C.get_PID() - return int(pid) + return int32(pid) } // Pids get the all process id