summaryrefslogtreecommitdiff
path: root/ucoo/utils
diff options
context:
space:
mode:
authorNicolas Schodet2015-04-20 10:34:06 +0200
committerNicolas Schodet2019-10-07 00:44:50 +0200
commitdef502b1c9dba8d5e883e4a22c31a495b631e8a4 (patch)
tree0430a8432c4f4c3272b44e54b643a6b58f9bf2c3 /ucoo/utils
parent7a91c75e1cccf6b32b950100c3eb1a90402443d3 (diff)
Use C++11 feature to implement lengthof
Also disable warning about auto_ptr until it is changed.
Diffstat (limited to 'ucoo/utils')
-rw-r--r--ucoo/utils/test/test_crc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ucoo/utils/test/test_crc.cc b/ucoo/utils/test/test_crc.cc
index c20600d..219c38b 100644
--- a/ucoo/utils/test/test_crc.cc
+++ b/ucoo/utils/test/test_crc.cc
@@ -35,7 +35,7 @@ main (int argc, const char **argv)
{
ucoo::Test test (tsuite, "crc8 test vector");
static const uint8_t test_vector[] = { 0x02, 0x1c, 0xb8, 0x01, 0, 0, 0, 0xa2 };
- if (ucoo::crc8_compute (test_vector, lengthof (test_vector)) != 0)
+ if (ucoo::crc8_compute (test_vector, ucoo::lengthof (test_vector)) != 0)
test.fail ();
}
{