From efde8113258b117ec0a7fbffe6d681442d045c41 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 23 Aug 2011 00:04:57 +0200 Subject: [PATCH] Add a constructor for hb_prealloced_array_t Fixes build with MSVC. --- src/hb-private.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-private.hh b/src/hb-private.hh index 413becd41..b13d9cd6f 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -240,6 +240,8 @@ struct hb_prealloced_array_t { Type *array; Type static_array[StaticSize]; + hb_prealloced_array_t (void) { memset (this, 0, sizeof (*this)); } + inline Type& operator [] (unsigned int i) { return array[i]; } inline const Type& operator [] (unsigned int i) const { return array[i]; }