forked from Imagelibrary/rtems
testsuites/flashdev01: Use correct page_size type
The page size ioctl requires an int pointer to retrieve the page size. The test currently uses a size_t which mostly works fine for systems where size_t and int are the same size, but can leave junk data in the upper bits when they differ in size causing an assert in the test to fail in some cases. This updates the variable to the correct type.
This commit is contained in:
committed by
Joel Sherrill
parent
09fd5dd353
commit
ea27adaa0d
@@ -57,7 +57,7 @@ static void run_test(void) {
|
||||
rtems_flashdev_ioctl_page_info pg_info;
|
||||
rtems_flashdev_region region;
|
||||
uint32_t jedec;
|
||||
size_t page_count;
|
||||
int page_count;
|
||||
int type;
|
||||
size_t wb_size;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user