(mode_compile): Add cast to avoid warning about `signed and unsigned type in conditional expression'.