Fix function pointer formatting.
@@ -267,6 +267,7 @@ const fallbackfmt = {sb, params, tyenc, ap : valist# -> void
var l_val : int64, ul_val : uint64
var z_val : size
var p_val : byte#
+ var f_val : intptr[2]
var c_val : char
var s_val : byte[:]
var f32_val : flt32, f64_val : flt64
@@ -354,13 +355,16 @@ const fallbackfmt = {sb, params, tyenc, ap : valist# -> void
vabytes(ap)
;;
| `Tyfunc tc:
- p_val = vanext(ap)
+ f_val = vanext(ap)
sbputs(sb, "func{")
intfmt(sb, \
[.base=16, .padto=2*sizeof(void#), .padfill='0'], \
- false, (p_val : intptr))
+ false, (f_val[0] : intptr))
+ sbputs(sb, ", ")
+ intfmt(sb, \
+ [.base=16, .padto=2*sizeof(void#), .padfill='0'], \
+ false, (f_val[1] : intptr))
sbputs(sb, "}")
- vabytes(ap)
| `Tyarray (sz, desc):
subap = vaenter(ap)
sbputs(sb, "[")
