From 752eb38a4dbe590995cbadaff06baadd8378eeeb Mon Sep 17 00:00:00 2001 From: Adrian Vogelsgesang Date: Tue, 5 Apr 2022 13:18:10 +0200 Subject: [PATCH] [Bug] Fix formatting of anonymous labels (#362) Anonymous labels accidentally called `sb.append` instead of `sb.appendFormat` which messes up the label's formatting. --- src/asmjit/core/formatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asmjit/core/formatter.cpp b/src/asmjit/core/formatter.cpp index 1c4b7b6..1a9a386 100644 --- a/src/asmjit/core/formatter.cpp +++ b/src/asmjit/core/formatter.cpp @@ -143,7 +143,7 @@ Error formatLabel( } if (le->type() == LabelType::kAnonymous) - ASMJIT_PROPAGATE(sb.append("L%u@", labelId)); + ASMJIT_PROPAGATE(sb.appendFormat("L%u@", labelId)); return sb.append(le->name()); } else {