mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-20 22:13:29 +08:00
- 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:
@ -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)
|
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;
|
_US32 i;
|
||||||
|
|
||||||
for (i = 0; i < UNITY_INT_WIDTH; 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');
|
UNITY_OUTPUT_CHAR('1');
|
||||||
}
|
}
|
||||||
@ -188,7 +188,7 @@ void UnityPrintMask(const _U_UINT mask, const _U_UINT number)
|
|||||||
{
|
{
|
||||||
UNITY_OUTPUT_CHAR('X');
|
UNITY_OUTPUT_CHAR('X');
|
||||||
}
|
}
|
||||||
bit = bit >> 1;
|
current_bit = current_bit >> 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user