Browse Source

Switch back to %lld for 64-bit integers. Windows supports them but still

gives a warning. Just ignore them for now.
tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
0a76018aa8
2 changed files with 7 additions and 4 deletions
  1. +4
    -4
      src/app/RackWidget.cpp
  2. +3
    -0
      standalone/main.cpp

+ 4
- 4
src/app/RackWidget.cpp View File

@@ -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 %I64d", id);
WARN("Cannot find ModuleWidget with ID %lld", 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 %I64d", id);
WARN("Cannot find CableWidget with ID %lld", 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 %I64d", id);
WARN("Cannot find module with ID %lld", 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 %I64d", id);
WARN("Cannot find cable with ID %lld", id);
continue;
}



+ 3
- 0
standalone/main.cpp View File

@@ -114,6 +114,9 @@ int main(int argc, char* argv[]) {
logger::init();
random::init();

// Test stuff
// exit(0);

// We can now install a signal handler and log the output
if (!settings::devMode) {
signal(SIGABRT, fatalSignalHandler);


Loading…
Cancel
Save