diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-01 13:08:11 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-01 13:08:11 -0400 |
| commit | c0c6fe863f8e074cbe8297b5da2a476f455b6518 (patch) | |
| tree | 276bd5a52eec5eb6b2d4980adefb1bf5255951b6 /src/stdlib/pointers.c | |
| parent | a571ccffd795a595e990a3405dcf977aafc33c6c (diff) | |
Make Texts() macro a bit more flexible.
Diffstat (limited to 'src/stdlib/pointers.c')
| -rw-r--r-- | src/stdlib/pointers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/pointers.c b/src/stdlib/pointers.c index b5e6400f..0a1623a0 100644 --- a/src/stdlib/pointers.c +++ b/src/stdlib/pointers.c @@ -44,7 +44,7 @@ Text_t Pointer$as_text(const void *x, bool colorize, const TypeInfo_t *type) { TypeInfo_t rec_table = *Table$info(type, &Int64$info); int64_t *id = Table$get(pending, x, &rec_table); if (id) { - Text_t text = Texts(Text$from_str(ptr_info.sigil), Int64$as_text(id, false, &Int64$info)); + Text_t text = Texts(Text$from_str(ptr_info.sigil), Int64$value_as_text(*id)); return colorize ? Texts(Text("\x1b[34;1m"), text, Text("\x1b[m")) : text; } int64_t next_id = pending.entries.length + 2; |
