Fix compile warning in VC++
Thanks to Ind