mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 00:15:58 +01:00
Using C90 style comments
This commit is contained in:
@@ -1269,7 +1269,7 @@ void UnityAssertNumbersArrayWithin(const UNITY_UINT delta,
|
|||||||
switch (length)
|
switch (length)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
// fixing problems with signed overflow on unsigned numbers
|
/* fixing problems with signed overflow on unsigned numbers */
|
||||||
if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
|
if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
|
||||||
{
|
{
|
||||||
expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT8*)expected;
|
expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT8*)expected;
|
||||||
@@ -1285,7 +1285,7 @@ void UnityAssertNumbersArrayWithin(const UNITY_UINT delta,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
// fixing problems with signed overflow on unsigned numbers
|
/* fixing problems with signed overflow on unsigned numbers */
|
||||||
if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
|
if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
|
||||||
{
|
{
|
||||||
expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT16*)expected;
|
expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT16*)expected;
|
||||||
@@ -1302,7 +1302,7 @@ void UnityAssertNumbersArrayWithin(const UNITY_UINT delta,
|
|||||||
|
|
||||||
#ifdef UNITY_SUPPORT_64
|
#ifdef UNITY_SUPPORT_64
|
||||||
case 8:
|
case 8:
|
||||||
// fixing problems with signed overflow on unsigned numbers
|
/* fixing problems with signed overflow on unsigned numbers */
|
||||||
if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
|
if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
|
||||||
{
|
{
|
||||||
expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT64*)expected;
|
expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT64*)expected;
|
||||||
@@ -1320,7 +1320,7 @@ void UnityAssertNumbersArrayWithin(const UNITY_UINT delta,
|
|||||||
|
|
||||||
default: /* default is length 4 bytes */
|
default: /* default is length 4 bytes */
|
||||||
case 4:
|
case 4:
|
||||||
// fixing problems with signed overflow on unsigned numbers
|
/* fixing problems with signed overflow on unsigned numbers */
|
||||||
if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
|
if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
|
||||||
{
|
{
|
||||||
expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT32*)expected;
|
expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT32*)expected;
|
||||||
|
|||||||
Reference in New Issue
Block a user