提交 d01fe476 编写于 作者: M mvandervoord

- renamed 'bit' variable to 'current_bit' to avoid name collision with some...

- 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
上级 8f0d2595
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册