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:
parent
c27d48c89a
commit
4fa2f6fdb2
1 changed files with 1 additions and 1 deletions
|
@ -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); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue