summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-03 12:02:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-20 11:22:33 +0900
commit768ceb4ead2c1a78b2af047e8f54f2472b34e849 (patch)
treefb2cafd28fc01fd5fe66b12f70ab27e84d65a719 /compile.c
parent7c01cf49083992bc61ec9703b6fb4bc588701c00 (diff)
Cast to void pointer for `%p` in commented out code [ci skip]
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/compile.c b/compile.c
index e9295a47b4..1e88dc242d 100644
--- a/compile.c
+++ b/compile.c
@@ -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");