Fixing C4146 warning

Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
Merge pull request #4823

1e73504 Fixing C4146 warning (ENikS)