Skip to content

Commit

Permalink
Evaluations in error should still be accounted for in the history.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerilk committed Oct 10, 2024
1 parent d270337 commit 6a5c085
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tuner_random.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@ _ccs_tuner_random_tell(
ccs_result_t err;
for (size_t i = 0; i < num_evaluations; i++) {
ccs_evaluation_result_t result;
CCS_VALIDATE(ccs_evaluation_get_result(
(ccs_evaluation_t)evaluations[i], &result));
CCS_VALIDATE(
ccs_evaluation_get_result(evaluations[i], &result));
CCS_VALIDATE(ccs_retain_object(evaluations[i]));
utarray_push_back(history, evaluations + i);
if (result == CCS_RESULT_SUCCESS) {
int discard = 0;
UT_array *tmp;
ccs_retain_object(evaluations[i]);
utarray_push_back(history, evaluations + i);
tmp = d->old_optima;
d->old_optima = d->optima;
d->optima = tmp;
Expand Down

0 comments on commit 6a5c085

Please sign in to comment.