Skip to content

Commit b95c5f7

Browse files
Yossi LevyYossi Levy
authored andcommitted
Replace UINT16_MAX with (uint16_t)-1 because of build failure
1 parent 492dc9f commit b95c5f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/device_key/source/DeviceKey.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ int DeviceKey::write_key_to_nvstore(uint32_t *input, size_t isize)
130130

131131
int DeviceKey::read_key_from_nvstore(uint32_t *output, size_t& size)
132132
{
133-
if (size > UINT16_MAX) {
133+
if (size > (uint16_t)-1) {
134134
return DEVICEKEY_INVALID_PARAM;
135135
}
136136

0 commit comments

Comments
 (0)