From 508f7cfaca1a9a559de9b56ba489e1f4ec3519a7 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 11 May 2011 11:38:15 -0600 Subject: [PATCH] utf8.c: "<" should be "<=" av_len() is misnamed, and hence led me earlier to stop the loop one shy of what it should have been. No actual bugs were caused by this, but it could cause a duplicate entry in an array, which is searched linearly, hence a slight slowdown. --- utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utf8.c b/utf8.c index 11c2fa4..371db53 100644 --- a/utf8.c +++ b/utf8.c @@ -2702,7 +2702,7 @@ Perl__swash_inversion_hash(pTHX_ SV* const swash) } } - for (i = 0; i < av_len(list); i++) { + for (i = 0; i <= av_len(list); i++) { SV** entryp = av_fetch(list, i, FALSE); SV* entry; if (entryp == NULL) { -- 2.7.4