changed char c to signed char c to be compatible to armhf architecture