[array] Return Crap instead of Null if Type is not const
Ouch!
This commit is contained in:
parent
94e72cf1c9
commit
6cd60c2f2a
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue