From e8505d79e723162e499f275fc55c4330d9c6a8ef Mon Sep 17 00:00:00 2001 From: Gabriel Ozouf Date: Tue, 26 May 2020 11:09:46 +0200 Subject: [PATCH] [ion/device/exam_mode] Fixed missing parentheses in assertion Change-Id: If10b6ea98ed224d79cfa50f38f9e229331d0f9f9 --- ion/src/device/shared/drivers/exam_mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ion/src/device/shared/drivers/exam_mode.cpp b/ion/src/device/shared/drivers/exam_mode.cpp index a4aa20143..8efdb9d8d 100644 --- a/ion/src/device/shared/drivers/exam_mode.cpp +++ b/ion/src/device/shared/drivers/exam_mode.cpp @@ -51,7 +51,7 @@ size_t numberOfBitsAfterLeadingZeroes(int i) { uint8_t * SignificantExamModeAddress() { uint32_t * persitence_start_32 = (uint32_t *)&_exam_mode_buffer_start; uint32_t * persitence_end_32 = (uint32_t *)&_exam_mode_buffer_end; - assert(persitence_end_32 - persitence_start_32 % 4 == 0); + assert((persitence_end_32 - persitence_start_32) % 4 == 0); while (persitence_start_32 < persitence_end_32 && *persitence_start_32 == 0x0) { // Scan by groups of 32 bits to reach first non-zero bit persitence_start_32++;