Skip to content

Fix compilation for 32bit#12

Open
pseregiet wants to merge 1 commit into
tomolt:masterfrom
pseregiet:master
Open

Fix compilation for 32bit#12
pseregiet wants to merge 1 commit into
tomolt:masterfrom
pseregiet:master

Conversation

@pseregiet
Copy link
Copy Markdown

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
Copy Markdown

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

@Darky-Lucera
Copy link
Copy Markdown

Ok, I see this merge in the develop branch

@pseregiet
Copy link
Copy Markdown
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