From 379c99a69f21d4ddae9bd5becc57b3191e1c7a38 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 30 Dec 2020 23:52:25 -0500 Subject: [PATCH] Fix printf string for 64-bit integers on Windows. --- src/app/RackWidget.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/RackWidget.cpp b/src/app/RackWidget.cpp index 764693ff..23217941 100644 --- a/src/app/RackWidget.cpp +++ b/src/app/RackWidget.cpp @@ -187,7 +187,7 @@ void RackWidget::mergeJson(json_t* rootJ) { // TODO Legacy v0.6? ModuleWidget* moduleWidget = getModule(id); if (!moduleWidget) { - WARN("Cannot find ModuleWidget with ID %ld", id); + WARN("Cannot find ModuleWidget with ID %I64d", id); continue; } @@ -212,7 +212,7 @@ void RackWidget::mergeJson(json_t* rootJ) { int64_t id = json_integer_value(idJ); CableWidget* cw = getCable(id); if (!cw) { - WARN("Cannot find CableWidget with ID %ld", id); + WARN("Cannot find CableWidget with ID %I64d", id); continue; } @@ -238,7 +238,7 @@ void RackWidget::fromJson(json_t* rootJ) { int64_t id = json_integer_value(idJ); engine::Module* module = APP->engine->getModule(id); if (!module) { - WARN("Cannot find module with ID %ld", id); + WARN("Cannot find module with ID %I64d", id); continue; } @@ -283,7 +283,7 @@ void RackWidget::fromJson(json_t* rootJ) { int64_t id = json_integer_value(idJ); engine::Cable* cable = APP->engine->getCable(id); if (!cable) { - WARN("Cannot find cable with ID %ld", id); + WARN("Cannot find cable with ID %I64d", id); continue; }