- 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
This commit is contained in:
mvandervoord
2010-09-06 19:03:07 +00:00
parent 8f0d259539
commit d01fe47662

View File

@ -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;
}
}