math/lcalc: fix with clang 19
Patch by Reno Dakota from https://gitlab.com/sagemath/lcalc/-/issues/16