Skip to content

Commit 1d5d7dc

Browse files
committed
Fix: Cast to (whNvmSize)sizeof(data)
1 parent 1506dc0 commit 1d5d7dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/wh_test_nvm_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static void _ShowList(const whNvmCb* cb, void* context)
137137
myMetadata.len);
138138

139139
while ( (rc == 0) &&
140-
((myMetadata.len - offset) > sizeof(data))) {
140+
((myMetadata.len - offset) > (whNvmSize)sizeof(data))) {
141141
/* Read the data from this object */
142142
rc = cb->Read(context, id, offset, sizeof(data), data);
143143

0 commit comments

Comments
 (0)