Use correct types wrt the protocol.

Using optimization a bug was revealed where read an %1i into
a Sint32, causing 3 uninitialized bytes to be returned.
This caused the client screen not to unlock.