unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 8283084086765eb22c0b9839762c5aa928a1ffda 1050 bytes (raw)
name: gnu/packages/patches/minisat-friend-declaration.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
See https://groups.google.com/forum/#!topic/minisat/FCocZsC8oMQ

diff -rupN minisat-2.2.0/core/SolverTypes.h minisat-2.2.0.patched/core/SolverTypes.h
--- a/core/SolverTypes.h	2010-07-10 17:07:36.000000000 +0100
+++ b/core/SolverTypes.h	2014-03-29 11:57:49.000000000 +0000
@@ -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 = false);

     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; }

debug log:

solving 8283084086 ...
found 8283084086 in https://yhetil.org/guix-patches/20191115023401.8126-1-robertsmith@posteo.net/

applying [1/1] https://yhetil.org/guix-patches/20191115023401.8126-1-robertsmith@posteo.net/
diff --git a/gnu/packages/patches/minisat-friend-declaration.patch b/gnu/packages/patches/minisat-friend-declaration.patch
new file mode 100644
index 0000000000..8283084086

Checking patch gnu/packages/patches/minisat-friend-declaration.patch...
Applied patch gnu/packages/patches/minisat-friend-declaration.patch cleanly.

index at:
100644 8283084086765eb22c0b9839762c5aa928a1ffda	gnu/packages/patches/minisat-friend-declaration.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).