We happen to get correct behavior here with +1L, but anything else is really not correct.
This ends up erroring CRAN's UBSAN builds that compile with -fsanitize=undefined. We have tests that check that integer overflow example and they give a run time error
Not sure how to fix this yet because we would need to control the xtensor + op
We happen to get correct behavior here with
+1L
, but anything else is really not correct.This ends up erroring CRAN's UBSAN builds that compile with
-fsanitize=undefined
. We have tests that check that integer overflow example and they give a run time errorNot sure how to fix this yet because we would need to control the xtensor
+
op