src: fix benign C4244 VS warning

Fixes a "conversion from 'int64_t' to 'int', possible loss of data"
compiler warning.