Skip to content

Commit

Permalink
Fix sat-solver build breaks
Browse files Browse the repository at this point in the history
As reported in
#1454 (comment)
  • Loading branch information
linas committed Mar 11, 2023
1 parent 5ede90f commit ffdf5d8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Version 5.12.3 (XXX 2023)
* Nothing yet.
* Assorted Atomese fixes.
* Fix SAT-solver build breaks.

Version 5.12.2 (9 March 2023)
* Fix null-pointer deref in Atomese code.
Expand Down
2 changes: 1 addition & 1 deletion link-grammar/sat-solver/sat-encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,7 @@ Exp* SATEncoderConjunctionFreeSentences::PositionConnector2exp(const PositionCon
bool SATEncoderConjunctionFreeSentences::sat_extract_links(Linkage lkg)
{
Disjunct *d;
int current_link = 0;
uint32_t current_link = 0;

Exp **exp_word = (Exp **)alloca(_sent->length * sizeof(Exp *));
memset(exp_word, 0, _sent->length * sizeof(Exp *));
Expand Down
1 change: 1 addition & 0 deletions link-grammar/sat-solver/sat-encoder.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "link-includes.h"
#include "tokenize/word-structures.h"

#include "word-tag.hpp"

Expand Down
1 change: 1 addition & 0 deletions link-grammar/sat-solver/word-tag.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ extern "C" {
#include "error.h" // assert()
#include "dict-common/dict-common.h"
#include "tokenize/tok-structures.h" // gword_set
#include "tokenize/word-structures.h" // X_node
#include "tokenize/wordgraph.h" // in_same_alternative()
};

Expand Down

0 comments on commit ffdf5d8

Please sign in to comment.