diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-10-03 12:02:58 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-10-20 11:22:33 +0900 |
commit | 768ceb4ead2c1a78b2af047e8f54f2472b34e849 (patch) | |
tree | fb2cafd28fc01fd5fe66b12f70ab27e84d65a719 /compile.c | |
parent | 7c01cf49083992bc61ec9703b6fb4bc588701c00 (diff) |
Cast to void pointer for `%p` in commented out code [ci skip]
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1181,11 +1181,11 @@ debug_list(ISEQ_ARG_DECLARE LINK_ANCHOR *const anchor, LINK_ELEMENT *cur) { LINK_ELEMENT *list = FIRST_ELEMENT(anchor); printf("----\n"); - printf("anch: %p, frst: %p, last: %p\n", &anchor->anchor, - anchor->anchor.next, anchor->last); + printf("anch: %p, frst: %p, last: %p\n", (void *)&anchor->anchor, + (void *)anchor->anchor.next, (void *)anchor->last); while (list) { - printf("curr: %p, next: %p, prev: %p, type: %d\n", list, list->next, - list->prev, (int)list->type); + printf("curr: %p, next: %p, prev: %p, type: %d\n", (void *)list, (void *)list->next, + (void *)list->prev, (int)list->type); list = list->next; } printf("----\n"); |