gfan/gfan-c++20.patch
2024-09-10 11:31:47 +02:00

13 lines
485 B
Diff

--- gfan0.7/src/gfanlib_circuittableint.h.orig 2024-08-12 10:00:15.000000000 -0600
+++ gfan0.7/src/gfanlib_circuittableint.h 2024-08-15 16:14:29.983298300 -0600
@@ -591,7 +591,8 @@ public:
ret=min;
{
- auto ret2=CircuitTableIntPOD((s.v*denominatorDivisor.multiplicativeInverse)*boundA.v);
+ CircuitTableIntPOD ret2{};
+ ret2=(s.v*denominatorDivisor.multiplicativeInverse)*boundA.v;
ret2=MIN(ret2.v,-ret2.v);
return ret2;
if(ret.v!=ret2.v)