Merge pull request #40091 from tg-at-google:patch-13

PiperOrigin-RevId: 314380135
Change-Id: I91e4b410de2ea5cba2dd4af6c0f88c9e4d079dda
This commit is contained in:
TensorFlower Gardener 2020-06-02 12:26:34 -07:00
commit e7b9f9149e

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);