Replace UINT16_MAX with (uint16_t)-1 because of build failure

pull/6642/head
Yossi Levy 2018-05-21 18:47:39 +03:00
parent 492dc9f1fc
commit b95c5f79c0
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ int DeviceKey::write_key_to_nvstore(uint32_t *input, size_t isize)
int DeviceKey::read_key_from_nvstore(uint32_t *output, size_t& size)
{
if (size > UINT16_MAX) {
if (size > (uint16_t)-1) {
return DEVICEKEY_INVALID_PARAM;
}