diff --git a/hcl/lib/print.c b/hcl/lib/print.c index 2a32a84..4f7d242 100644 --- a/hcl/lib/print.c +++ b/hcl/lib/print.c @@ -181,6 +181,11 @@ next: if (outbfmt(hcl, mask, "%zd", HCL_OOP_TO_SMOOI(obj)) <= -1) return -1; goto done; } + else if (HCL_OOP_IS_SMPTR(obj)) + { + if (outbfmt(hcl, mask, "#\\p%zX", (hcl_oow_t)HCL_OOP_TO_SMPTR(obj)) <= -1) return -1; + goto done; + } else if (HCL_OOP_IS_CHAR(obj)) { hcl_ooch_t ch = HCL_OOP_TO_CHAR(obj); @@ -189,11 +194,6 @@ next: outbfmt(hcl, mask, "\'") <= -1) return -1; goto done; } - else if (HCL_OOP_IS_SMPTR(obj)) - { - if (outbfmt(hcl, mask, "#\\p%zX", (hcl_oow_t)HCL_OOP_TO_SMPTR(obj)) <= -1) return -1; - goto done; - } else if (HCL_OOP_IS_ERROR(obj)) { if (outbfmt(hcl, mask, "#\\e%zd", (hcl_ooi_t)HCL_OOP_TO_ERROR(obj)) <= -1) return -1;