Cast -1 to (char) to cope with different default char types on ARM.