Fix type mismatch

Ah, the joys of picky compilers...