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:
4683791
)
[test-iter] Don't walk past end
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 9 May 2019 18:23:41 +0000
(11:23 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 9 May 2019 18:31:13 +0000
(11:31 -0700)
That's not legal.
src/test-iter.cc
patch
|
blob
|
history
diff --git
a/src/test-iter.cc
b/src/test-iter.cc
index
e6c5d45
..
2f6ed74
100644
(file)
--- a/
src/test-iter.cc
+++ b/
src/test-iter.cc
@@
-82,8
+82,10
@@
test_iterator_non_default_constructable (Iter it)
(void) _;
it += it.len ();
- it = it + 10;
- it = 10 + it;
+ if (0)
+ it = it + 10;
+ if (0)
+ it = 10 + it;
assert (*it == it[0]);