Skip to content

Commit a8df484

Browse files
rooshmvivier
authored andcommitted
thunk: improve readability of allocation loop
Signed-off-by: Aarushi Mehta <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Message-Id: <[email protected]> Signed-off-by: Laurent Vivier <[email protected]>
1 parent 208d92d commit a8df484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thunk.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void thunk_register_struct(int id, const char *name, const argtype *types)
8686
#endif
8787
/* now we can alloc the data */
8888

89-
for(i = 0;i < 2; i++) {
89+
for (i = 0; i < ARRAY_SIZE(se->field_offsets); i++) {
9090
offset = 0;
9191
max_align = 1;
9292
se->field_offsets[i] = g_new(int, nb_fields);

0 commit comments

Comments
 (0)