• R/O
  • SSH

libctools: Commit

This library contains code that extends and simplifies different operations
for C language based programs.


Commit MetaInfo

Revisionfbf14b157cf28aef88b7bba8b148e6b2630edd3f (tree)
Zeit2018-10-10 12:39:20
AutorSergey Gusarov
CommiterSergey Gusarov

Log Message

Fixed compilation

Ändern Zusammenfassung

Diff

diff -r 414ed256d7bb -r fbf14b157cf2 tests/src/std/test_math.c
--- a/tests/src/std/test_math.c Wed Oct 10 06:35:50 2018 +0300
+++ b/tests/src/std/test_math.c Wed Oct 10 06:39:20 2018 +0300
@@ -65,7 +65,7 @@
6565 TEST_ASSERT_EQUAL_INT32(roundf32(1.5f), 2);
6666 TEST_ASSERT_EQUAL_UINT32(uroundf32(1.5f), 2U);
6767
68-#if defined(UNITY_INCLUDE_64) || defined(UNITY_LONG_WIDTH == 64)
68+#if defined(UNITY_INCLUDE_64) || (UNITY_LONG_WIDTH == 64)
6969 TEST_ASSERT_EQUAL_INT64(roundf64(1.5f), 2);
7070 TEST_ASSERT_EQUAL_UINT64(uroundf64(1.5f), 2U);
7171 #endif
@@ -80,7 +80,7 @@
8080 TEST_ASSERT_EQUAL_INT32(round32(1.5), 2);
8181 TEST_ASSERT_EQUAL_UINT32(uround32(1.5), 2U);
8282
83-#if defined(UNITY_INCLUDE_64) || defined(UNITY_LONG_WIDTH == 64)
83+#if defined(UNITY_INCLUDE_64) || (UNITY_LONG_WIDTH == 64)
8484 TEST_ASSERT_EQUAL_INT64(round64(1.5), 2);
8585 TEST_ASSERT_EQUAL_UINT64(uround64(1.5), 2U);
8686 #endif
diff -r 414ed256d7bb -r fbf14b157cf2 tests/src/test_simple_round.c
--- a/tests/src/test_simple_round.c Wed Oct 10 06:35:50 2018 +0300
+++ b/tests/src/test_simple_round.c Wed Oct 10 06:39:20 2018 +0300
@@ -41,7 +41,7 @@
4141 TEST_ASSERT_EQUAL_INT32(CT_SIMPLE_ROUNDF32(1.5f), 2);
4242 TEST_ASSERT_EQUAL_UINT32(CT_SIMPLE_UROUNDF32(1.5f), 2U);
4343
44-#if defined(UNITY_INCLUDE_64) || defined(UNITY_LONG_WIDTH == 64)
44+#if defined(UNITY_INCLUDE_64) || (UNITY_LONG_WIDTH == 64)
4545 TEST_ASSERT_EQUAL_INT64(CT_SIMPLE_ROUNDF64(1.5f), 2);
4646 TEST_ASSERT_EQUAL_UINT64(CT_SIMPLE_UROUNDF64(1.5f), 2U);
4747 #endif
@@ -56,7 +56,7 @@
5656 TEST_ASSERT_EQUAL_INT32(CT_SIMPLE_ROUND32(1.5), 2);
5757 TEST_ASSERT_EQUAL_UINT32(CT_SIMPLE_UROUND32(1.5), 2U);
5858
59-#if defined(UNITY_INCLUDE_64) || defined(UNITY_LONG_WIDTH == 64)
59+#if defined(UNITY_INCLUDE_64) || (UNITY_LONG_WIDTH == 64)
6060 TEST_ASSERT_EQUAL_INT64(CT_SIMPLE_ROUND64(1.5), 2);
6161 TEST_ASSERT_EQUAL_UINT64(CT_SIMPLE_UROUND64(1.5), 2U);
6262 #endif
Show on old repository browser