Fix one Mac compilation bug

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