Merge pull request #55 from seleznevae/issue-54
Fix invalid pointer to integer cast that might cause problems on some platforms
This commit is contained in:
commit
d9ee76ab89
@ -3,6 +3,7 @@
|
|||||||
### Internal
|
### Internal
|
||||||
|
|
||||||
- Add builds with gcc-9 to CI.
|
- Add builds with gcc-9 to CI.
|
||||||
|
- Fix invalid pointer to integer cast that might cause problems on some platforms.
|
||||||
|
|
||||||
## v0.4.1
|
## v0.4.1
|
||||||
|
|
||||||
|
@ -6867,7 +6867,7 @@ int buffer_check_align(f_string_buffer_t *buffer)
|
|||||||
return 1;
|
return 1;
|
||||||
#ifdef FT_HAVE_WCHAR
|
#ifdef FT_HAVE_WCHAR
|
||||||
case W_CHAR_BUF:
|
case W_CHAR_BUF:
|
||||||
return (((unsigned long)buffer->str.data) & (sizeof(wchar_t) - 1)) == 0;
|
return (((uintptr_t)buffer->str.data) & (sizeof(wchar_t) - 1)) == 0;
|
||||||
#endif
|
#endif
|
||||||
#ifdef FT_HAVE_UTF8
|
#ifdef FT_HAVE_UTF8
|
||||||
case UTF8_BUF:
|
case UTF8_BUF:
|
||||||
|
@ -685,7 +685,7 @@ int buffer_check_align(f_string_buffer_t *buffer)
|
|||||||
return 1;
|
return 1;
|
||||||
#ifdef FT_HAVE_WCHAR
|
#ifdef FT_HAVE_WCHAR
|
||||||
case W_CHAR_BUF:
|
case W_CHAR_BUF:
|
||||||
return (((unsigned long)buffer->str.data) & (sizeof(wchar_t) - 1)) == 0;
|
return (((uintptr_t)buffer->str.data) & (sizeof(wchar_t) - 1)) == 0;
|
||||||
#endif
|
#endif
|
||||||
#ifdef FT_HAVE_UTF8
|
#ifdef FT_HAVE_UTF8
|
||||||
case UTF8_BUF:
|
case UTF8_BUF:
|
||||||
|
Loading…
Reference in New Issue
Block a user