convert all int to int64

Pid should be the same as whatever Go is doing.