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

Fix C++ narrowing issue #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

daveythacher
Copy link

C++ compiler complains about narrowing. The hack that removed it was changing the char to uint8_t. This is standard C so this should not cause any issues. Using unsigned char may have also worked but I did this instead.

@waltje
Copy link

waltje commented May 10, 2023

Yep, that is what I have in my clone, too. They should also be 'const', in my opinion.

@@ -18,7 +18,9 @@
* Fetched from: http://dimensionalrift.homelinux.net/combuster/mos3/?p=viewsource&file=/modules/gfx/font8_8.asm
**/

char font8x8_sga[26][8] = {
#include <stdint.h>

Choose a reason for hiding this comment

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

Small whitespace fix.

Suggested change
#include <stdint.h>
#include <stdint.h>

@@ -18,9 +18,11 @@
* Fetched from: http://dimensionalrift.homelinux.net/combuster/mos3/?p=viewsource&file=/modules/gfx/font8_8.asm
**/

#include <stdint.h>

Choose a reason for hiding this comment

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

Small whitespace fix.

Suggested change
#include <stdint.h>
#include <stdint.h>

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.

3 participants