fixes MSVC compiler error C2487. Fix for issue #996.

This is a fix for the issue #996.