Cloudy & Associates

Skip to content

Fix bug with rbegin() in mole_species.cpp

Chatzikos, Marios requested to merge rbegin_bug into master

A reverse iterator is used to go over the list of nuclei present in a molecule. However, the iterator is decremented instead of incremented, leading to a segmentation fault with LLVM on Mac.

Increment the iterator to fix the bug.

Reported-by: Leoni Janssen, on https://cloudyastrophysics.groups.io/

Merge request reports