Changed int32_t to int16_t