Skip to content

Commit ac8ce9f

Browse files
stay in double to avoid overflow
CoinUtils/src/CoinFactorization4.cpp:2290:42: runtime error: 2.28294e+09 is outside the range of representable values of type 'int'
1 parent 32a17a5 commit ac8ce9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CoinFactorization4.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2287,7 +2287,7 @@ void CoinFactorization::updateColumnTransposeL(CoinIndexedVector *regionSparse)
22872287
// we may need to rethink on dense
22882288
if (sparseThreshold_ > 0) {
22892289
if (btranAverageAfterL_) {
2290-
int newNumber = static_cast< int >(number * btranAverageAfterL_);
2290+
double newNumber = number * btranAverageAfterL_;
22912291
if (newNumber < sparseThreshold_)
22922292
goSparse = 2;
22932293
else if (newNumber < sparseThreshold2_)

0 commit comments

Comments
 (0)