ztress: Fix comparison of signed/unsigned types

This fixes the compiler warning "comparison of integer expressions of
different signedness: 'int' and 'unsigned int' [-Werror=sign-compare]"

Signed-off-by: Benjamin Gwin <bgwin@google.com>
This commit is contained in:
Benjamin Gwin 2022-10-05 13:56:25 -07:00 committed by Carles Cufí
commit 4fa2f6fdb2

View file

@ -164,7 +164,7 @@ struct ztress_context_data {
}; \
size_t cnt = ARRAY_SIZE(data1) - has_timer; \
static struct ztress_context_data data[ARRAY_SIZE(data1)]; \
for (int i = 0; i < ARRAY_SIZE(data1); i++) { \
for (size_t i = 0; i < ARRAY_SIZE(data1); i++) { \
data[i] = data1[i]; \
} \
int err = ztress_execute(has_timer ? &data[0] : NULL, &data[has_timer], cnt); \