PokeGOAPI-Java icon indicating copy to clipboard operation
PokeGOAPI-Java copied to clipboard

Why pokemon id return negative number? Is that UID?

Open vodoi1432 opened this issue 10 years ago • 1 comments

Description: pokemon id return a negative number, is that okay?

Steps to reproduce:

Expected behavior: pokemon id is a nagative number

Actual behavior: pokemon id is a nagative number Stacktrace (If it's a crash):

Version: 0.4.0

vodoi1432 avatar Aug 17 '16 02:08 vodoi1432

The pokemon ID is an unsigned long in the protobuf definitions, but java7 and below do not have an unsigned long type, so protobuf converts it to its signed counterpart.

Grover-c13 avatar Aug 17 '16 03:08 Grover-c13