bugfix so smallmath can use int8_t