tcp: fix VC++ warning C4244