fix Issue 13784 - Wrong code with modulo operation and optimisations enabled
Merge pull request #4214 from WalterBright/fix13784

fix Issue 13784 - Wrong code with modulo operation and optimisations ena...