[array] Return Crap instead of Null if Type is not const

Ouch!
This commit is contained in:
Behdad Esfahbod 2018-12-17 00:09:06 -05:00
parent 94e72cf1c9
commit 6cd60c2f2a
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}