From 2092b75f1b8cc9bc1011ceca0e920ac7c79aebd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Tue, 30 Jul 2024 10:47:32 +0200 Subject: [PATCH] Fix tautological-constant-out-of-range-compare warnings --- src/CbcSolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CbcSolver.cpp b/src/CbcSolver.cpp index bdb23d862..30be976f1 100644 --- a/src/CbcSolver.cpp +++ b/src/CbcSolver.cpp @@ -5155,7 +5155,7 @@ int CbcMain1(std::deque inputQueue, CbcModel &model, // we have to keep solver2 so pass clone solver2 = solver2->clone(); // see if extra variables wanted - bool threshold = parameters[CbcParam::EXTRAVARIABLES]->intVal(); + int threshold = parameters[CbcParam::EXTRAVARIABLES]->intVal(); int more2 = parameters[CbcParam::MOREMOREMIPOPTIONS]->intVal(); if (threshold || (more2 & (512 | 1024)) != 0) { int numberColumns = solver2->getNumCols();