Skip to content

Commit 1ed9a17

Browse files
committed
sat: fix probing.cc compilation on windows
1 parent 87e8e34 commit 1ed9a17

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ortools/sat/probing.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "ortools/sat/probing.h"
1515

1616
#include <algorithm>
17+
#include <cstdint>
1718
#include <deque>
1819
#include <functional>
1920
#include <optional>
@@ -103,8 +104,8 @@ class TrailCopy {
103104
}
104105
trail_index_[var] = i;
105106
trail_literals_.push_back(literal);
106-
trail_info_.push_back({info.level, assignment_type, reason,
107-
reason_clause});
107+
trail_info_.emplace_back(info.level, assignment_type, reason,
108+
reason_clause);
108109
}
109110

110111
const int num_decisions = trail_.CurrentDecisionLevel();
@@ -232,7 +233,7 @@ class TrailCopy {
232233
}
233234

234235
struct TrailInfo {
235-
int level;
236+
uint32_t level;
236237
int assignment_type;
237238
// For literals propagated by the BinaryImplicationGraph, the negation of
238239
// the original reason. For literals propagated by the ClauseManager, *all*

0 commit comments

Comments
 (0)