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

Add a constructor for hb_prealloced_array_t

Fixes build with MSVC.
上级 d75333f1
...@@ -240,6 +240,8 @@ struct hb_prealloced_array_t { ...@@ -240,6 +240,8 @@ struct hb_prealloced_array_t {
Type *array; Type *array;
Type static_array[StaticSize]; Type static_array[StaticSize];
hb_prealloced_array_t (void) { memset (this, 0, sizeof (*this)); }
inline Type& operator [] (unsigned int i) { return array[i]; } inline Type& operator [] (unsigned int i) { return array[i]; }
inline const Type& operator [] (unsigned int i) const { return array[i]; } inline const Type& operator [] (unsigned int i) const { return array[i]; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册