Skip to content

Avoid implicit pointer sign conversion - #92

Open
michaelforney wants to merge 1 commit into
ibara:mainfrom
michaelforney:implicit-conversion
Open

Avoid implicit pointer sign conversion#92
michaelforney wants to merge 1 commit into
ibara:mainfrom
michaelforney:implicit-conversion

Conversation

@michaelforney

Copy link
Copy Markdown

Pointer assignment and calls with pointer arguments require pointers
to compatible types. Using the wrong sign is a constraint violation,
since char and unsigned char are not compatible types.

kb_entry.seq is always used with functions expecting char *, so
make it a char * instead.

Use an explicit conversion to char * when calling str* functions
in posix_cclass().

Pointer assignment and calls with pointer arguments require pointers
to compatible types. Using the wrong sign is a constraint violation,
since char and unsigned char are not compatible types.

kb_entry.seq is always used with functions expecting char *, so
make it a char * instead.

Use an explicit conversion to char * when calling str* functions
in posix_cclass().
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