src: fix VC++ warning C4244