Skip to content
Open
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
4 changes: 2 additions & 2 deletions harmony_model_checker/charm/ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -2207,7 +2207,7 @@ void do_Load(struct state *state, struct step *step,
unsigned total = vip->size;
vip++;
for (unsigned int i = k; i < size; i++, vip++) {
if (VALUE_TYPE(indices[k]) != VALUE_ATOM) {
if (VALUE_TYPE(indices[i]) != VALUE_ATOM) {
char *p = value_string(av);
value_ctx_failure(step->ctx, step->allocator, "Load %s: bad string index", p);
free(p);
Expand Down Expand Up @@ -2253,7 +2253,7 @@ void do_Load(struct state *state, struct step *step,
unsigned total = vip->size;
vip++;
for (unsigned int i = k; i < size; i++, vip++) {
if (VALUE_TYPE(indices[k]) != VALUE_LIST) {
if (VALUE_TYPE(indices[i]) != VALUE_LIST) {
char *p = value_string(av);
value_ctx_failure(step->ctx, step->allocator, "Load %s: bad list index", p);
free(p);
Expand Down