Fix msvc compiler error
Merge pull request #1048 from cgohlke/patch-1

Fix msvc compiler error