Skip to content

Fix for nasty double-assignment m=m = m, spotted via mcstas-antlr#2355

Merged
willend merged 1 commit intomccode-dev:mainfrom
willend:main
Mar 13, 2026
Merged

Fix for nasty double-assignment m=m = m, spotted via mcstas-antlr#2355
willend merged 1 commit intomccode-dev:mainfrom
willend:main

Conversation

@willend
Copy link
Contributor

@willend willend commented Mar 13, 2026

Free-form text area

Please describe what your PR is adding in terms of features or bugfixes:


Development OS / boundary conditions

Please describe what OS you developed and tested your additions on, and if any special dependencies are required:

Noticed that mcstas-antlr systematically hangs on ILL_H113… And spotted this nasty double-assignment in multiple Guide_gravity instances.


PR Checklist for contributing to McStas/McXtrace

For a coherent and useful contribution to McStas/McXtrace, please fill in relevant parts of the checklist:

  • My contribution includes patches to an existing instrument file

    • I have used the mcdoc utility and rendered a reasonable documentation page for the instrument (please attach as screenshot in comments!)
    • I have used the mctest utility to test the instrument (please attach mcviewtest report as screenshot in comments)
    • I have used the mcrun --c-lint "linter" and followed advice to remove most / all warnings that are raised
  • My contribution contains something else

    • Explanation is added in free form text above or below the checklist

@willend willend merged commit 4279405 into mccode-dev:main Mar 13, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant