Skip to content

Conversation

@JBenda
Copy link
Owner

@JBenda JBenda commented Feb 11, 2021

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.

@JBenda JBenda requested a review from brwarner February 11, 2021 19:35
Copy link
Collaborator

@brwarner brwarner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiler, please.

@brwarner brwarner merged commit 503f1c4 into JBenda:master Feb 11, 2021
@brwarner brwarner linked an issue Feb 11, 2021 that may be closed by this pull request
@JBenda
Copy link
Owner Author

JBenda commented Feb 12, 2021

Error happen for: gcc (GCC) 10.2.0 with -O2 -g -DNDEBUG and -O3 -DNDEBUG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

String Comparison Unit Test Failing on Linux

2 participants