From d2c128bea6b1c55e4582fea4a5b0efa9d7e37774 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Sat, 22 Nov 2014 21:25:50 -0500 Subject: [PATCH] Corrected dumpw handling of embedded literals --- source/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/main.c b/source/main.c index 14565f7..f30ca5e 100755 --- a/source/main.c +++ b/source/main.c @@ -19,8 +19,11 @@ defcode("dumpw", dumpw, LATEST_BUILTIN, 0u) { printf("code:"); word_t** code = (word_t**)word->code; while(*code) { - printf("\t%s\n", (*code)->name); + printf("\t%s", (*code)->name); + if (*code == &lit) + printf(" %zd", (intptr_t)*(++code)); code++; + puts(""); } printf("\tret\n"); } -- 2.52.0