From cd326c6548041b5d87d1db5c9da13fab03621f68 Mon Sep 17 00:00:00 2001 From: Nat Jeffries Date: Wed, 15 Jan 2020 11:12:26 -0800 Subject: [PATCH] Remove incorrectly duplicated sizeof from micro_allocator PiperOrigin-RevId: 289896711 Change-Id: Ieca61d4761e58215b06ce816d03b2c649b55815a --- tensorflow/lite/micro/micro_allocator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/lite/micro/micro_allocator.cc b/tensorflow/lite/micro/micro_allocator.cc index 807319f9d04..f28ae0decca 100644 --- a/tensorflow/lite/micro/micro_allocator.cc +++ b/tensorflow/lite/micro/micro_allocator.cc @@ -435,7 +435,7 @@ TfLiteStatus MicroAllocator::InitializeRuntimeTensor( (src_quantization->zero_point()->size() > 0)) { result->params.scale = src_quantization->scale()->Get(0); // This magic handles issues with little-endianness. - for (unsigned int b = 0; b < sizeof(sizeof(result->params.zero_point)); ++b) + for (unsigned int b = 0; b < sizeof(result->params.zero_point); ++b) *(reinterpret_cast(&result->params.zero_point) + b) = *(reinterpret_cast( src_quantization->zero_point()->Data()) +