Fix regression on PowerPC.

Patch courtesy of nwc10++; this probably affected other big endian
platforms too.