Fix incorrect type assignment.

In practise, this is unlikely to have any effect on any platform anywhere in the
world ever. But it was still wrong, so fixing it is no bad thing.

Spotted by LLVM's scan-build.