mirror of
https://github.com/OpenAMP/libmetal.git
synced 2026-08-17 17:54:55 +08:00
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:
committed by
Arnaud Pouliquen
parent
0678a81105
commit
4a7fcfbbe4
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user