mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
[array] Return Crap instead of Null if Type is not const
Ouch!
This commit is contained in:
1 parent
94e72cf1c9
commit
6cd60c2f2a
1 file changed
+1
-1
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user