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:
f33ad6d
)
Fix size calculation in DEFINE_SIZE_ARRAY_SIZED.
author
Garret Rieger
<grieger@google.com>
Tue, 23 Oct 2018 22:45:35 +0000
(15:45 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 23 Oct 2018 23:04:21 +0000
(16:04 -0700)
src/hb-machinery.hh
patch
|
blob
|
history
diff --git
a/src/hb-machinery.hh
b/src/hb-machinery.hh
index
ae34c92
..
19245e8
100644
(file)
--- 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])); \