Skip to content

Commit

Permalink
Merge pull request #659 from veg/2.3.5
Browse files Browse the repository at this point in the history
Xcode 9 compatibility
  • Loading branch information
stevenweaver authored Oct 5, 2017
2 parents 98976b2 + a49b7a6 commit 9e7445b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/batchlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2913,7 +2913,7 @@ void _ElementaryCommand::ExecuteCase11 (_ExecutionList& chain)
*tree = (_String*)(*likelihoodFunctionSpec)(i+1),
*freq = explicitFreqs?(_String*)(*likelihoodFunctionSpec)(i+2):nil;

if(GetDataFilter (AppendContainerName(*dataset,chain.nameSpacePrefix)) >= 0) {
if(GetDataFilter (AppendContainerName(*dataset,chain.nameSpacePrefix)) != nil) {
_TheTree* thisTree = (_TheTree*)FetchObjectFromVariableByType(&AppendContainerName(*tree,chain.nameSpacePrefix),TREE);
if (thisTree) {
_TreeIterator ti (thisTree, _HY_TREE_TRAVERSAL_POSTORDER);
Expand Down
4 changes: 2 additions & 2 deletions src/new/bayesgraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ _BayesianGraphicalModel::_BayesianGraphicalModel (_AssociativeList * nodes)
if ((avl_val = (_Constant *) (this_avl->GetByKey (_HYBgm_PRIOR_PRECISION, NUMBER)))) {
prior_precision.Store (node, 0, (_Parameter) (avl_val->Value()));

if (avl_val <= 0) {
if (avl_val->Value() <= 0.) {
errorMessage = _String ("PriorPrecision must be greater than zero, received ") & prior_precision(node,0) & " for node " & node;
break;
}
Expand All @@ -342,7 +342,7 @@ _BayesianGraphicalModel::_BayesianGraphicalModel (_AssociativeList * nodes)
if ((avl_val = (_Constant *) (this_avl->GetByKey (_HYBgm_PRIOR_SCALE, NUMBER)))) {
prior_scale.Store (node, 0, (_Parameter) (avl_val->Value()));

if (avl_val <= 0) {
if (avl_val->Value() <= 0.) {
errorMessage = _String ("PriorScale must be greater than zero, received ") & prior_scale(node,0) & " for node " & node;
break;
}
Expand Down

0 comments on commit 9e7445b

Please sign in to comment.