Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions qt/connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,14 @@ int Connector::evalProof(const ProofData *toBeEval, const GoalData *gls)
// vec_t *rets;
returns = init_vec(sizeof(char *));

if (!proof_eval(cProof,returns,1))
int eval_result = proof_eval(cProof,returns,1);
if (!eval_result)
qDebug() << "Proof Evaluated Successfully";
else
qDebug() << "Memory Error";

item_t * ev_itr;
int f = 0;
int f = (eval_result != 0) ? 1 : 0;
ev_itr = cProof->everything->head;
for (int i = 0; i < returns->num_stuff; i++){
char * cur_ret, * cur_line;
Expand Down
2 changes: 1 addition & 1 deletion src/sen-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ sen_data_evaluate (sen_data * sd, int * ret_val, list_t * pf_vars, list_t * line
sen_data * ref_data;

if (sd->refs[i] > lines->num_stuff)
return NULL;
return _("The referenced line does not exist.");
cur_ref = ls_nth (lines, sd->refs[i] - 1);
ref_data = cur_ref->value;

Expand Down