[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Tue Oct 23 23:04:36 UTC 2018
src/hb-machinery.hh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit aa5af8d041521507f8bc8ded8a365ee56098388c
Author: Garret Rieger <grieger at google.com>
Date: Tue Oct 23 15:45:35 2018 -0700
Fix size calculation in DEFINE_SIZE_ARRAY_SIZED.
diff --git a/src/hb-machinery.hh b/src/hb-machinery.hh
index ae34c92f..19245e89 100644
--- a/src/hb-machinery.hh
+++ b/src/hb-machinery.hh
@@ -118,7 +118,7 @@ static inline Type& StructAfter(TObject &X)
#define DEFINE_SIZE_ARRAY_SIZED(size, array) \
DEFINE_SIZE_ARRAY(size, array); \
- inline unsigned int get_size (void) const { return (size - array[0].min_size + array.get_size ()); }
+ inline unsigned int get_size (void) const { return (size - array.min_size + array.get_size ()); }
#define DEFINE_SIZE_ARRAY2(size, array1, array2) \
DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + sizeof (this->array1[0]) + sizeof (this->array2[0])); \
More information about the HarfBuzz
mailing list