Use explicit MOD type to avoid narrowing conversions from unsigned int
Merge pull request #3769 from yebblies/DDMDMOD

[DDMD] Use explicit MOD type to avoid narrowing conversions from unsigned int