[pango/harfbuzz-ng: 45/57] [HB] Fix couple of bugs
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pango/harfbuzz-ng: 45/57] [HB] Fix couple of bugs
- Date: Tue, 4 Aug 2009 20:05:08 +0000 (UTC)
commit 7d0dc6328b60b9a1244dca21d1bc2ffe7411f5d3
Author: Behdad Esfahbod <behdad behdad org>
Date: Tue Aug 4 12:05:24 2009 -0400
[HB] Fix couple of bugs
pango/opentype/hb-open-types-private.hh | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pango/opentype/hb-open-types-private.hh b/pango/opentype/hb-open-types-private.hh
index 96e5eb1..bc9bf86 100644
--- a/pango/opentype/hb-open-types-private.hh
+++ b/pango/opentype/hb-open-types-private.hh
@@ -342,14 +342,14 @@ struct GenericOffsetTo : OffsetType
{
unsigned int offset = *this;
if (HB_UNLIKELY (!offset)) return Null(Type);
- return CONST_CAST(Type, base, offset);
+ return CONST_CAST(Type, *CONST_CHARP(base), offset);
}
inline bool sanitize (SANITIZE_ARG_DEF, const void *base) {
if (!SANITIZE_OBJ (*this)) return false;
unsigned int offset = *this;
if (HB_UNLIKELY (!offset)) return true;
- return SANITIZE (CAST(Type, base, offset)) || NEUTER (*this, 0);
+ return SANITIZE (CAST(Type, *DECONST_CHARP(base), offset)) || NEUTER (*this, 0);
}
};
template <typename Base, typename OffsetType, typename Type>
@@ -388,7 +388,7 @@ struct GenericArrayOf
if (!(SANITIZE (len) && SANITIZE_GET_SIZE())) return false;
unsigned int count = len;
for (unsigned int i = 0; i < count; i++)
- if (!SANITIZE_THIS (array[i]))
+ if (!array[i].sanitize (SANITIZE_ARG, base))
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]