Closed JBenda closed 3 years ago
Fix for #18, it was an error in add. Because it was first access _data[j] and then checked if j was in bound, the compiler felled smart and just execute the for loop, because when you don't check the index it would be right.
Error happen for:gcc (GCC) 10.2.0 with -O2 -g -DNDEBUG and -O3 -DNDEBUG
gcc (GCC) 10.2.0
-O2 -g -DNDEBUG
-O3 -DNDEBUG
Fix for #18, it was an error in add. Because it was first access _data[j] and then checked if j was in bound, the compiler felled smart and just execute the for loop, because when you don't check the index it would be right.