1.fixed a bug: Long tye but use Integer type to compare

Signed-off-by: scauwjh <scauwjh@gmail.com>