test: zephyr: fix build issue

test/system/zephyr/main.c: In function 'metal_zephyr_allocate_memory':
test/system/zephyr/main.c:33:23: error:comparison of integer expressions
of different signedness: 'int' and 'unsigned int' [-Werror=sign-compare]
   33 |         for (i = 0; i < sizeof(block)/sizeof(block[0]); i++) {
      |                       ^

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
This commit is contained in:
Arnaud Pouliquen
2026-04-10 11:14:00 +02:00
committed by Arnaud Pouliquen
parent 0678a81105
commit 4a7fcfbbe4
+2 -2
View File
@@ -28,7 +28,7 @@ extern void metal_test_add_mutex();
extern void *metal_zephyr_allocate_memory(unsigned int size)
{
int i;
unsigned int i;
for (i = 0; i < sizeof(block)/sizeof(block[0]); i++) {
if (!block[i]) {
@@ -45,7 +45,7 @@ extern void *metal_zephyr_allocate_memory(unsigned int size)
extern void metal_zephyr_free_memory(void *ptr)
{
int i;
unsigned int i;
for (i = 0; i < sizeof(block)/sizeof(block[0]); i++) {
if (block[i] == ptr) {