in resolution of [Wsign-compare] warning id 13

index `i` changed to type `size_t`
This commit is contained in:
tg-at-google 2020-06-02 11:32:16 -04:00 committed by GitHub
parent 4b123fc001
commit 847bd7c896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ void FftCompute(struct FftState* state, const int16_t* input,
int16_t* fft_input = state->input;
// First, scale the input by the given shift.
int i;
size_t i;
for (i = 0; i < input_size; ++i) {
fft_input[i] = static_cast<int16_t>(static_cast<uint16_t>(input[i])
<< input_scale_shift);