src: fix VC++ warning C4244

Reviewed-by: Trevor Norris <trev.norris@gmail.com>