Skip to content

Fix compilation of strcmp() without optimization - #160

Open
rosenrost wants to merge 1 commit into
freemint:masterfrom
rosenrost:fix/compilation-of-strcmp-without-optimization
Open

rosenrost wants to merge 1 commit into
freemint:masterfrom
rosenrost:fix/compilation-of-strcmp-without-optimization

Conversation

@rosenrost

Copy link
Copy Markdown
Contributor

The fallback implementation used when __OPTIMIZE__ is not defined used the undeclared variables c1 and c2, so the library could not be built with -O0.

The fallback implementation used when __OPTIMIZE__ is not defined
used the undeclared variables c1 and c2, so the library could not be
built with -O0. Declare them as unsigned char, so that the result
matches the inline version.
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.

1 participant