fix quantisation for short int and char