From: Behdad Esfahbod Date: Mon, 17 Dec 2018 05:09:06 +0000 (-0500) Subject: [array] Return Crap instead of Null if Type is not const X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6cd60c2f2aa17e3f02b50c19cf640b3f183f3354;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [array] Return Crap instead of Null if Type is not const Ouch! --- diff --git a/src/hb-array.hh b/src/hb-array.hh index 523e4ce..ae8d2d7 100644 --- a/src/hb-array.hh +++ b/src/hb-array.hh @@ -55,7 +55,7 @@ struct hb_array_t Type& operator [] (int i_) const { unsigned int i = (unsigned int) i_; - if (unlikely (i >= len)) return Null(Type); + if (unlikely (i >= len)) return CrapOrNull(Type); return arrayZ[i]; }