fixed GH #616: Visual Studio warning C4244