diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-04-19 11:59:12 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-04-19 12:11:09 +0200 |
commit | bc4e9c7bcfd7d7b3f62b23e583ef216a05975e80 (patch) | |
tree | 6fdeea27d6b55e713554216b00b6922d3451a504 /unittest/test_HOTP.cc | |
parent | 5b36f06f49c88fb1921da18f54524081729cb4d5 (diff) | |
download | libnitrokey-bc4e9c7bcfd7d7b3f62b23e583ef216a05975e80.tar.gz libnitrokey-bc4e9c7bcfd7d7b3f62b23e583ef216a05975e80.tar.bz2 |
Fix compilation warnings for tests
Cleanup CMakeList a bit as well.
Fixes #97
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_HOTP.cc')
-rw-r--r-- | unittest/test_HOTP.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittest/test_HOTP.cc b/unittest/test_HOTP.cc index c13fb8e..b11cf25 100644 --- a/unittest/test_HOTP.cc +++ b/unittest/test_HOTP.cc @@ -38,7 +38,7 @@ void hexStringToByte(uint8_t data[], const char* hexString){ REQUIRE(strlen(hexString)%2==0); char buf[3]; buf[2] = '\0'; - for(int i=0; i<strlen(hexString); i++){ + for(size_t i=0; i<strlen(hexString); i++){ buf[i%2] = hexString[i]; if (i%2==1){ data[i/2] = strtoul(buf, NULL, 16) & 0xFF; |