From 05d83fa40669a8aa29569074b061fc1a73a6b74b Mon Sep 17 00:00:00 2001 From: Azim Khan Date: Sun, 10 Sep 2017 22:57:19 +0100 Subject: [PATCH] Put parentheses around macro arguments --- tests/suites/target_test.function | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/suites/target_test.function b/tests/suites/target_test.function index 596194707..f662eee86 100644 --- a/tests/suites/target_test.function +++ b/tests/suites/target_test.function @@ -18,7 +18,7 @@ /* <= is checked to support use inside a loop where \ pointer is incremented after reading data. */ \ assert( (uint32_t)( ( ( p ) - ( start ) ) + ( step ) ) <= ( len ) );\ - ( p ) += step; \ + ( p ) += ( step ); \ } \ while( 0 ) @@ -34,7 +34,7 @@ while( 0 ) #define ALIGN_32BIT(p, start, len) do \ { \ uint32_t align = ( - (uintptr_t)( p ) ) % 4;\ - INCR_ASSERT(p, start, len, align); \ + INCR_ASSERT( ( p ), ( start ), ( len ), align);\ } \ while( 0 ) @@ -156,8 +156,8 @@ uint8_t * receive_data( uint32_t * data_len ) } /** - * \brief Find count of hex arguments(test function arguments) in the - * received binary data. + * \brief Parse the received byte array and count the number of arguments + * to the test function passed as type hex. * * \param count Parameter count * \param data Received Byte array