Skip to content

Conversation

4rturkania
Copy link
Contributor

changed chars to ints to avoid "comparison between pointer and integer gcc" warning

changed chars to ints to avoid "comparison between pointer and integer gcc" warning
Comment on lines 7 to 13
/*
If I use chars here instead of ints I get a "comparison
between pointer and integer gcc" warning.
getchar returns int not char.
Char type is de facto a 1-byte integer type.
Thank you for you solutions, they're helping me learn.
*/
Copy link
Owner

Choose a reason for hiding this comment

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

Please remove your comment here, and we can merge your fix.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Thank you :)

@ohkimur ohkimur merged commit 766dc02 into ohkimur:main Jul 10, 2023
@ohkimur
Copy link
Owner

ohkimur commented Jul 10, 2023

@4rturkania Thanks for your contribution!

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

Labels

None yet

2 participants