Skip to content

Commit cf9b0d1

Browse files
christoph-cullmannsvigerske
authored andcommitted
make it harder to trigger overflows
with just int that happens fast even for 'normal problems': src/CbcModel.cpp:459:35: runtime error: signed integer overflow: 2074221009 + 91406250 cannot be represented in type 'int'
1 parent 42de27a commit cf9b0d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CbcModel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ void CbcModel::analyzeObjective()
427427
int numberInteger = 0;
428428
int numberIntegerObj = 0;
429429
int numberGeneralIntegerObj = 0;
430-
int numberIntegerWeight = 0;
430+
int64_t numberIntegerWeight = 0;
431431
int numberContinuousObj = 0;
432432
double cost = COIN_DBL_MAX;
433433
for (iColumn = 0; iColumn < numberColumns; iColumn++) {

0 commit comments

Comments
 (0)