From 60067e1a88670579c3c0f46b0225ab9e11eaff6c Mon Sep 17 00:00:00 2001 From: Krystie Date: Sun, 22 Mar 2026 22:46:48 +0100 Subject: [PATCH] fix: Add space between string literals and PRId64 macros Fixes C++11 literal-suffix warnings in util.h, net.h, and alert.cpp. Required space between string literal and macro per C++11 standard. No functional changes - formatting only. --- src/alert.cpp | 4 ++-- src/net.h | 2 +- src/util.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/alert.cpp b/src/alert.cpp index 94143c7..6b1af9a 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -53,8 +53,8 @@ std::string CUnsignedAlert::ToString() const return strprintf( "CAlert(\n" " nVersion = %d\n" - " nRelayUntil = %"PRId64"\n" - " nExpiration = %"PRId64"\n" + " nRelayUntil = %" PRId64 "\n" + " nExpiration = %" PRId64 "\n" " nID = %d\n" " nCancel = %d\n" " setCancel = %s\n" diff --git a/src/net.h b/src/net.h index 056bcf7..6742f31 100644 --- a/src/net.h +++ b/src/net.h @@ -422,7 +422,7 @@ public: // the key is the earliest time the request can be sent int64_t& nRequestTime = mapAlreadyAskedFor[inv]; if (fDebugNet) - printf("askfor %s %"PRId64" (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str()); + printf("askfor %s %" PRId64 " (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str()); // Make sure not to reuse time indexes to keep things in the same order int64_t nNow = (GetTime() - 1) * 1000000; diff --git a/src/util.h b/src/util.h index b1e651e..5334ac4 100644 --- a/src/util.h +++ b/src/util.h @@ -237,7 +237,7 @@ void runCommand(std::string strCommand); inline std::string i64tostr(int64_t n) { - return strprintf("%"PRId64, n); + return strprintf("%" PRId64, n); } inline std::string itostr(int n)