On ARM chars are unsigned

This code didn't worked on ARM, changing the table and parameters to int seems to work fine on any platform.