Fix one Mac compilation bug

See #6770.

This doesn't (shouldn't) change the actual function of the code, just silences an error from the finicky mac compiler.