Skip to content

Commit

Permalink
cogen sync McStas/McXtrace
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed Feb 28, 2024
1 parent 1dd8d5a commit c6df456
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions mcstas/src/cogen.c.in
Original file line number Diff line number Diff line change
Expand Up @@ -1164,8 +1164,6 @@ int cogen_decls(struct instr_def *instr)
index = list_len(instr->grouplist); // count GROUP
liter = list_iterate(instr->complist);
while((comp = list_next(liter)) != NULL) {
//It seems that JUMP alone does not require this struct?!
//index += list_len(comp->jump); // count JUMP
if (comp->split) index++; // count SPLIT
}
list_iterate_end(liter);
Expand Down
1 change: 0 additions & 1 deletion mcxtrace/src/cogen.c.in
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,6 @@ int cogen_decls(struct instr_def *instr)
index = list_len(instr->grouplist); // count GROUP
liter = list_iterate(instr->complist);
while((comp = list_next(liter)) != NULL) {
index += list_len(comp->jump); // count JUMP
if (comp->split) index++; // count SPLIT
}
list_iterate_end(liter);
Expand Down

0 comments on commit c6df456

Please sign in to comment.