Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid comparison of enum and enum* values #2

Open
tautschnig opened this issue Sep 22, 2012 · 1 comment
Open

Invalid comparison of enum and enum* values #2

tautschnig opened this issue Sep 22, 2012 · 1 comment

Comments

@tautschnig
Copy link

Hi,

While compiling your package using our research compiler infrastructure it became apparent that there exists a comparison that doesn't typecheck:

Line 2093 of file src/sv_regex/regexec.c reads as

if (BE (next_state == NULL && err != REG_NOERROR, 0))

with err being a pointer to an enum. This should likely be *err instead, as also found in line 2068.

Best,
Michael

@sodabrew
Copy link
Owner

Nice catch. That's actually a regex library pulled from glibc long ago. I'll take a look for changes.
Also thinking I should switch to something better like oniguruma.

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

No branches or pull requests

2 participants