Skip to content

Commit

Permalink
Update compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
szczepanskiNicolas committed Oct 10, 2023
1 parent 5a9f12a commit 13d9633
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion sources/solvers/GREEDY/src/bcp/Propagator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ namespace pyxai {
<< nbLitNotBin << "\n";

// reserve the data memory
m_data = new u_int8_t[memoryNeeded];
m_data = new uint8_t[memoryNeeded];

// init the vectors regarding their size.
m_notBinClauseRefs.reserve(nbClauseNotBin);
Expand Down
15 changes: 3 additions & 12 deletions sources/solvers/GREEDY/src/bcp/Propagator.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,7 @@
#include "./Problem.h"
#include "./ProblemTypes.h"

#if (__sun && __SVR4)
/* libnet should be using the standard type names, but in the short term
* define our non-standard type names in terms of the standard names.
*/
#include <inttypes.h>
typedef uint8_t u_int8_t;
typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;
typedef uint64_t u_int64_t;
#endif


namespace pyxai {
struct Imply {
Expand All @@ -55,7 +46,7 @@ namespace pyxai {
private:
std::ostream &m_out;

u_int8_t *m_data;
uint8_t *m_data;

unsigned m_nbVar;
unsigned m_posClauseNotBin;
Expand Down Expand Up @@ -146,7 +137,7 @@ namespace pyxai {
inline lbool value(const Lit l) {
if(l.var() > ((int)m_nbVar))
return l_Undef;
return ((u_int8_t) l.sign()) ^ m_assign[l.var()];
return ((uint8_t) l.sign()) ^ m_assign[l.var()];
}

/**
Expand Down

0 comments on commit 13d9633

Please sign in to comment.