* gcc/rust/backend/rust-compile.cc (legacy_hash): lo and hi are uint64_t use PRIx64 to print them as hex values instead of %lx which is target specific. --- gcc/rust/backend/rust-compile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/rust/backend/rust-compile.cc b/gcc/rust/backend/rust-compile.cc index 480afc8b72b..ea21ad3f92b 100644 --- a/gcc/rust/backend/rust-compile.cc +++ b/gcc/rust/backend/rust-compile.cc @@ -442,7 +442,7 @@ legacy_hash (const std::string &fingerprint) char hex[16 + 1]; memset (hex, 0, sizeof hex); - snprintf (hex, sizeof hex, "%08lx%08lx", lo, hi); + snprintf (hex, sizeof hex, "%08" PRIx64 "%08" PRIx64, lo, hi); return "h" + std::string (hex, sizeof (hex) - 1); } -- 2.32.0.rc0 -- Gcc-rust mailing list Gcc-rust@gcc.gnu.org https://gcc.gnu.org/mailman/listinfo/gcc-rust