Replace INT_MAX with INT32_MAX to avoid compile err

ors

https://bitcointalk.org/index.php?topic=704756.msg9953796#msg9953796