Skip to content

Commit

Permalink
compile fixes, per sandsmark
Browse files Browse the repository at this point in the history
  • Loading branch information
linas committed Jul 23, 2013
1 parent 431e372 commit 2d6fba8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions opencog/comboreduct/table/table_io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ istream& istreamRawITable(istream& in, ITable& tab,
vector<string> fl = tokenizeRow<string>(lines[0], ignored_indices);
arity_t arity = fl.size();

atomic<int> arity_fail_row(-1);
std::atomic<int> arity_fail_row(-1);
auto parse_line = [&](size_t i)
{
// tokenize the line and fill the table with
Expand Down Expand Up @@ -810,7 +810,7 @@ istream& inferTableAttributes(istream& in, const string& target_feature,

// determine arity
arity_t arity = maybe_header.size();
atomic<int> arity_fail_row(-1);
std::atomic<int> arity_fail_row(-1);

// determine initial type
vector<type_node> types(arity, id::unknown_type);
Expand Down
2 changes: 1 addition & 1 deletion opencog/reasoning/pln/PLNModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ Handle opencog::pln::applyRule(string ruleName, const HandleSeq& premises,
// result to be overwriten
vhpair vhp(Handle::UNDEFINED, NULL_VERSION_HANDLE);

OC_ASSERT(rule, "Apparently the rule %s is undefined", ruleName.c_str());
OC_ASSERT(rule.get(), "Apparently the rule %s is undefined", ruleName.c_str());

pHandleSeq phs = ASW()->realToFakeHandles(premises, CX);
if(rule->isComposer()) {
Expand Down

0 comments on commit 2d6fba8

Please sign in to comment.