projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a719a7
)
Comment
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 27 Nov 2018 22:40:09 +0000
(17:40 -0500)
committer
GitHub
<noreply@github.com>
Tue, 27 Nov 2018 22:40:09 +0000
(17:40 -0500)
src/hb-machinery.hh
patch
|
blob
|
history
diff --git
a/src/hb-machinery.hh
b/src/hb-machinery.hh
index
c384841
..
0e75c82
100644
(file)
--- a/
src/hb-machinery.hh
+++ b/
src/hb-machinery.hh
@@
-692,8
+692,10
@@
struct BEInt<Type, 2>
inline operator Type (void) const
{
#if defined(__GNUC__) || defined(__clang__)
+ /* Spoon-feed the compiler a big-endian integer with alignment 1.
+ * https://github.com/harfbuzz/harfbuzz/pull/1398 */
struct __attribute__((packed)) packed_uint16_t { uint16_t v; };
- return __builtin_bswap16(((packed_uint16_t *) this)->v);
+ return __builtin_bswap16
(((packed_uint16_t *) this)->v);
#endif
return (v[0] << 8)
+ (v[1] );