From c0e2f8340bae64a77559a9a0e51ecb5c5c4c0ab9 Mon Sep 17 00:00:00 2001 From: Rangi Date: Mon, 20 Jul 2026 00:09:06 -0400 Subject: [PATCH] Output negative values with correct with in .sym files --- src/link/output.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/link/output.cpp b/src/link/output.cpp index 9a9eb6c2..6869c300 100644 --- a/src/link/output.cpp +++ b/src/link/output.cpp @@ -585,7 +585,7 @@ static void writeSym() { < std::tie(std::get(sym2->data), sym2->name); }); for (Symbol *sym : constants) { - int32_t val = std::get(sym->data); + uint32_t val = static_cast(std::get(sym->data)); int width = val < 0x100 ? 2 : val < 0x10000 ? 4 : 8; fprintf(symFile, "%0*" PRIx32 " ", width, val); writeSymName(sym->name, symFile);