upgrade some int to int64_t to avoid overflows in reporting
Merge pull request #583 from kanoi/master

upgrade some int to int64_t to avoid overflows in reporting