This repository has been archived by the owner on Apr 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ddc2f88
commit bc56175
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
pkgs/applications/science/logic/satallax/fix-declaration-gcc9.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git i/minisat/core/SolverTypes.h w/minisat/core/SolverTypes.h | ||
--- i/minisat/core/SolverTypes.h | ||
+++ w/minisat/core/SolverTypes.h | ||
@@ -47,7 +47,7 @@ struct Lit { | ||
int x; | ||
|
||
// Use this as a constructor: | ||
- friend Lit mkLit(Var var, bool sign = false); | ||
+ friend Lit mkLit(Var var, bool sign); | ||
|
||
bool operator == (Lit p) const { return x == p.x; } | ||
bool operator != (Lit p) const { return x != p.x; } | ||
@@ -55,7 +55,7 @@ struct Lit { | ||
}; | ||
|
||
|
||
-inline Lit mkLit (Var var, bool sign) { Lit p; p.x = var + var + (int)sign; return p; } | ||
+inline Lit mkLit (Var var, bool sign = false) { Lit p; p.x = var + var + (int)sign; return p; } | ||
inline Lit operator ~(Lit p) { Lit q; q.x = p.x ^ 1; return q; } | ||
inline Lit operator ^(Lit p, bool b) { Lit q; q.x = p.x ^ (unsigned int)b; return q; } | ||
inline bool sign (Lit p) { return p.x & 1; } |