Fix alignment error

This commit is contained in:
Behdad Esfahbod 2022-11-16 16:22:45 -07:00
parent dff1b809a0
commit afa71ee8ef
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@
#define HB_SET_DIGEST_HH #define HB_SET_DIGEST_HH
#include "hb.hh" #include "hb.hh"
#include "hb-machinery.hh"
/* /*
* The set-digests here implement various "filters" that support * The set-digests here implement various "filters" that support
@ -97,7 +98,7 @@ struct hb_set_digest_bits_pattern_t
for (unsigned int i = 0; i < count; i++) for (unsigned int i = 0; i < count; i++)
{ {
add (*array); add (*array);
array = (const T *) (stride + (const char *) array); array = &StructAtOffsetUnaligned<T> ((const void *) array, stride);
} }
} }
template <typename T> template <typename T>