Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/asmjit/asmjit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Vogelsgesang <avogelsgesang@tableau.com>2022-04-05 14:18:10 +0300
committerGitHub <noreply@github.com>2022-04-05 14:18:10 +0300
commit752eb38a4dbe590995cbadaff06baadd8378eeeb (patch)
treece2e5151b6b806c2fdb177043355d400750d27f6
parenta876e4d1cd17468ed3cf4305f0e701967601fd34 (diff)
[Bug] Fix formatting of anonymous labels (#362)
Anonymous labels accidentally called `sb.append` instead of `sb.appendFormat` which messes up the label's formatting.
-rw-r--r--src/asmjit/core/formatter.cpp2
1 files changed, 1 insertions, 1 deletions
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 {