提交 d35315cc 编写于 作者: B Behdad Esfahbod

[aat] Fixup recent commit

For 329f2401

max_ops is signed.
上级 948f59a1
...@@ -538,7 +538,7 @@ struct hb_aat_apply_context_t : ...@@ -538,7 +538,7 @@ struct hb_aat_apply_context_t :
sanitizer.init (table); sanitizer.init (table);
sanitizer.set_num_glyphs (face->get_num_glyphs ()); sanitizer.set_num_glyphs (face->get_num_glyphs ());
sanitizer.start_processing (); sanitizer.start_processing ();
sanitizer.set_max_ops ((unsigned int) -1); sanitizer.set_max_ops (HB_SANITIZE_MAX_OPS_MAX);
} }
inline void set_lookup_index (unsigned int i) { lookup_index = i; } inline void set_lookup_index (unsigned int i) { lookup_index = i; }
......
...@@ -217,6 +217,9 @@ struct hb_dispatch_context_t ...@@ -217,6 +217,9 @@ struct hb_dispatch_context_t
#ifndef HB_SANITIZE_MAX_OPS_MIN #ifndef HB_SANITIZE_MAX_OPS_MIN
#define HB_SANITIZE_MAX_OPS_MIN 16384 #define HB_SANITIZE_MAX_OPS_MIN 16384
#endif #endif
#ifndef HB_SANITIZE_MAX_OPS_MAX
#define HB_SANITIZE_MAX_OPS_MAX 0x3FFFFFFF
#endif
struct hb_sanitize_context_t : struct hb_sanitize_context_t :
hb_dispatch_context_t<hb_sanitize_context_t, bool, HB_DEBUG_SANITIZE> hb_dispatch_context_t<hb_sanitize_context_t, bool, HB_DEBUG_SANITIZE>
...@@ -252,7 +255,7 @@ struct hb_sanitize_context_t : ...@@ -252,7 +255,7 @@ struct hb_sanitize_context_t :
} }
inline unsigned int get_num_glyphs (void) { return num_glyphs; } inline unsigned int get_num_glyphs (void) { return num_glyphs; }
inline void set_max_ops (unsigned int max_ops_) { max_ops = max_ops_; } inline void set_max_ops (int max_ops_) { max_ops = max_ops_; }
template <typename T> template <typename T>
inline void set_object (const T& obj) inline void set_object (const T& obj)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册