This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d7e78b
)
Avoid compiler warnings in Perl_foldEQ_utf8, spotted by Jerry D. Hedden.
author
Nicholas Clark
<nick@ccl4.org>
Thu, 17 Jun 2010 16:54:25 +0000
(17:54 +0100)
committer
Nicholas Clark
<nick@ccl4.org>
Thu, 17 Jun 2010 16:54:25 +0000
(17:54 +0100)
utf8.c
patch
|
blob
|
blame
|
history
diff --git
a/utf8.c
b/utf8.c
index
1f4192f
..
53085e6
100644
(file)
--- a/
utf8.c
+++ b/
utf8.c
@@
-2588,14
+2588,18
@@
Perl_foldEQ_utf8(pTHX_ const char *s1, char **pe1, register UV l1, bool u1, cons
* only go as far as the goal */
e1 = g1;
}
- else assert(e1); /* Must have an end for looking at s1 */
+ else {
+ assert(e1); /* Must have an end for looking at s1 */
+ }
/* Same for goal for s2 */
if (g2) {
assert(! e2 || e2 >= g2);
e2 = g2;
}
- else assert(e2);
+ else {
+ assert(e2);
+ }
/* Look through both strings, a character at a time */
while (p1 < e1 && p2 < e2) {