]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/test-string-output-visitor.c
i386: Update new x86_apicid parsing rules with die_offset support
[mirror_qemu.git] / tests / test-string-output-visitor.c
index fa4b4ca28896f548a3113f9b333c1288ec2dee2c..02766c0f659561b6ca4547a3f2e1a644a6b7f696 100644 (file)
@@ -95,7 +95,7 @@ static void test_visitor_out_intList(TestOutputVisitorData *data,
     Error *err = NULL;
     char *str;
 
-    for (i = 0; i < sizeof(value) / sizeof(value[0]); i++) {
+    for (i = 0; i < ARRAY_SIZE(value); i++) {
         *tmp = g_malloc0(sizeof(**tmp));
         (*tmp)->value = value[i];
         tmp = &(*tmp)->next;