Files
loongoffice/external/lpsolve/lpsolve-ubsan.patch.0
Stephan Bergmann e7e39d3969 Avoid undefined out-of-range conversions from double to unsigned char
Change-Id: I7cf4af81d477865aa0a93c8aa071a8785677c572
2014-06-18 13:26:50 +02:00

12 lines
257 B
Plaintext

--- lp_pricePSE.c
+++ lp_pricePSE.c
@@ -145,7 +147,7 @@
/* Store the active/current pricing type */
if(isdual == AUTOMATIC)
- isdual = (MYBOOL) lp->edgeVector[0];
+ isdual = lp->edgeVector[0] != 0.0;
else
lp->edgeVector[0] = isdual;