[aat] Fixup recent commit

For 329f240108

max_ops is signed.
pull/1231/merge
Behdad Esfahbod 6 years ago
parent 948f59a13a
commit d35315cc02
  1. 2
      src/hb-aat-layout-common.hh
  2. 5
      src/hb-machinery.hh

@ -538,7 +538,7 @@ struct hb_aat_apply_context_t :
sanitizer.init (table);
sanitizer.set_num_glyphs (face->get_num_glyphs ());
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; }

@ -217,6 +217,9 @@ struct hb_dispatch_context_t
#ifndef HB_SANITIZE_MAX_OPS_MIN
#define HB_SANITIZE_MAX_OPS_MIN 16384
#endif
#ifndef HB_SANITIZE_MAX_OPS_MAX
#define HB_SANITIZE_MAX_OPS_MAX 0x3FFFFFFF
#endif
struct hb_sanitize_context_t :
hb_dispatch_context_t<hb_sanitize_context_t, bool, HB_DEBUG_SANITIZE>
@ -252,7 +255,7 @@ struct hb_sanitize_context_t :
}
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>
inline void set_object (const T& obj)

Loading…
Cancel
Save