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 compilation for 32bit #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pseregiet
Copy link

cmap_fmt4, cmap_fmt6 and glyph_id functions declaration and definition didn't match, causing errors when compiling for 32bit (-m32 compiler and linker flag). Some variables were created as unsigned long, pointer to them was passed to functions taking uint_fast_32_t* which is unsigned long int* (not the same as unsigned long*). I think the whole uint_fast_32_t can be replaced with just unsigned int, but I didn't do it in this PR.

@Darky-Lucera
Copy link

It does not compile in GCC 11 either (64 bits)

@Darky-Lucera
Copy link

Ok, I see this merge in the develop branch

@pseregiet
Copy link
Author

Hi @Darky-Lucera sorry for extremely late reply but somehow I didn't get a notification on this issue. This commit is outdated. I just tried compiling libschrift for 32 bit and it works. It only gives a warning in stress.c because the glyph variable is declared as long unsigned int instead of SFT_Glyph (which would be the same on 64 bit, hence no warning)

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.

2 participants