The buffer is always casted to int32_t* anyway; declare it as int32_t array, and remove the cast.
Attach a file by drag & drop or click to upload