Kaydet (Commit) e7e39d39 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Avoid undefined out-of-range conversions from double to unsigned char

Change-Id: I7cf4af81d477865aa0a93c8aa071a8785677c572
üst 6640136b
......@@ -26,6 +26,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,lpsolve,\
external/lpsolve/lp_solve-aix.patch \
external/lpsolve/lp_solve-fixed-warn.patch \
external/lpsolve/lp_solve_5.5.patch \
external/lpsolve/lpsolve-ubsan.patch.0 \
))
$(eval $(call gb_UnpackedTarball_add_file,lpsolve,lpsolve55/ccc.static,external/lpsolve/ccc.static))
......
--- 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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment