• R/O
  • SSH

libctools: Commit

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


Commit MetaInfo

Revision29cd76c425fd66b9623bcd15f11cf56345473f03 (tree)
Zeit2018-10-10 12:48:58
AutorSergey Gusarov
CommiterSergey Gusarov

Log Message

test_hex: Fixed ms vc compilation

Ändern Zusammenfassung

Diff

diff -r fbf14b157cf2 -r 29cd76c425fd tests/src/test_hex.c
--- a/tests/src/test_hex.c Wed Oct 10 06:39:20 2018 +0300
+++ b/tests/src/test_hex.c Wed Oct 10 06:48:58 2018 +0300
@@ -109,10 +109,9 @@
109109 {
110110 const uint8_t kArray[] = {'1', 'B', 'Z'};
111111 const size_t kArraySize = CT_ARRAY_SIZE(kArray);
112- const size_t kHexStringSize = kArraySize * kNibblesInByte;
113- char hexString[kHexStringSize];
112+ char hexString[CT_ARRAY_SIZE(kArray) * kNibblesInByte];
114113
115114 arrayToHexString(kArray, hexString, kArraySize);
116115
117- TEST_ASSERT_TRUE(strncmp(hexString, "31425A", kHexStringSize) == 0);
116+ TEST_ASSERT_TRUE(strncmp(hexString, "31425A", CT_ARRAY_SIZE(hexString)) == 0);
118117 }
Show on old repository browser