fixed msvc compile warning