Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LeastSquaresSolver: Fix nasty GCC compile optimization error
The original implementation with no wrapping on size_t is more readable but the compiler errors with: internal compiler error: in trunc_int_for_mode, at explow.c:55 I read up and it's apparently a loop optimization problem. Inspired by https://stackoverflow.com/a/27224697/6326048 I used a far less readable implementation that works fine and wrote a comment to explain it.
- Loading branch information