From d01fe47662a21eca4a194528badc187034216dba Mon Sep 17 00:00:00 2001 From: mvandervoord Date: Mon, 6 Sep 2010 19:03:07 +0000 Subject: [PATCH] - renamed 'bit' variable to 'current_bit' to avoid name collision with some special compilers (HiTech for PIC) git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@92 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e --- src/unity.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/unity.c b/src/unity.c index 9d8d29d..c6c942b 100644 --- a/src/unity.c +++ b/src/unity.c @@ -168,14 +168,14 @@ void UnityPrintNumberHex(const _U_UINT number, const char nibbles_to_print) //----------------------------------------------- void UnityPrintMask(const _U_UINT mask, const _U_UINT number) { - _U_UINT bit = (_U_UINT)1 << (UNITY_INT_WIDTH - 1); + _U_UINT current_bit = (_U_UINT)1 << (UNITY_INT_WIDTH - 1); _US32 i; for (i = 0; i < UNITY_INT_WIDTH; i++) { - if (bit & mask) + if (current_bit & mask) { - if (bit & number) + if (current_bit & number) { UNITY_OUTPUT_CHAR('1'); } @@ -188,7 +188,7 @@ void UnityPrintMask(const _U_UINT mask, const _U_UINT number) { UNITY_OUTPUT_CHAR('X'); } - bit = bit >> 1; + current_bit = current_bit >> 1; } }