shithub: sl

Download patch

ref: edcdd3b7060a87a230157836f9486713b6476080
parent: 3d8c5928ed0ebb0cb6ca82ad2e6e6b772be09930
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Mar 10 10:32:17 EST 2023

cvalue_print: use %p instead of 0x%08llux with casting

--- a/print.c
+++ b/print.c
@@ -816,8 +816,7 @@
         void *fptr = *(void**)data;
         label = (value_t)ptrhash_get(&reverse_dlsym_lookup_table, cv);
         if (label == (value_t)HT_NOTFOUND) {
-            HPOS += ios_printf(f, "#<builtin @0x%08llux>",
-                               (uvlong)(builtin_t)fptr);
+            HPOS += ios_printf(f, "#<builtin @%p>", fptr);
         }
         else {
             if (print_princ) {