incorporate code review comment in embedded_test.function
diff --git a/tests/suites/embedded_test.function b/tests/suites/embedded_test.function
index 312cf91..3f1e77a 100644
--- a/tests/suites/embedded_test.function
+++ b/tests/suites/embedded_test.function
@@ -13,12 +13,12 @@
*/
#define INCR_ASSERT(p, start, len, step) do \
{ \
- assert( p >= start ); \
- assert( sizeof( *p ) == sizeof( *start ) ); \
+ assert( ( p ) >= ( start ) ); \
+ assert( sizeof( *( p ) ) == sizeof( *( start ) ) ); \
/* <= is checked to support use inside a loop where \
pointer is incremented after reading data. */ \
- assert( (uint32_t)( (p - start) + step ) <= len ); \
- p += step; \
+ assert( (uint32_t)( ( ( p ) - ( start ) ) + step ) <= len );\
+ ( p ) += step; \
} \
while( 0 )
@@ -33,7 +33,7 @@
*/
#define ALIGN_32BIT(p, start, len) do \
{ \
- uint32_t align = ( - (uintptr_t)p ) % 4; \
+ uint32_t align = ( - (uintptr_t)( p ) ) % 4;\
INCR_ASSERT(p, start, len, align); \
} \
while( 0 )