shithub: femtolisp

Download patch

ref: 74b99bca7f536be48806628bf9d824ae27a7f849
parent: de08c21e7a9f359e65463e60a1ae5af023ecdbf8
author: Sigrid Solveig Haflínudóttir <[email protected]>
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) {