projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94e72cf
)
[array] Return Crap instead of Null if Type is not const
author
Behdad Esfahbod
<behdad@behdad.org>
Mon, 17 Dec 2018 05:09:06 +0000
(
00:09
-0500)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 17 Dec 2018 05:09:06 +0000
(
00:09
-0500)
Ouch!
src/hb-array.hh
patch
|
blob
|
history
diff --git
a/src/hb-array.hh
b/src/hb-array.hh
index
523e4ce
..
ae8d2d7
100644
(file)
--- 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
CrapOr
Null(Type);
return arrayZ[i];
}