[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v2.18-13-g26c2c2a
From: |
Paul Eggert |
Subject: |
grep branch, master, updated. v2.18-13-g26c2c2a |
Date: |
Sat, 01 Mar 2014 07:58:53 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via 26c2c2a2fecdd131048ca35ae13c000cd448315f (commit)
from b446793dcff5c3fe5a5ab81c336e2fb05f7e5376 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=26c2c2a2fecdd131048ca35ae13c000cd448315f
commit 26c2c2a2fecdd131048ca35ae13c000cd448315f
Author: Paul Eggert <address@hidden>
Date: Fri Feb 28 23:58:16 2014 -0800
grep: minor tuning for mb_case_map_apply
* src/kwsearch.c (mb_case_map_apply): Avoid unnecessary widening of
size_t to intmax_t. Avoid unnecessary reinitialization of k.
diff --git a/src/kwsearch.c b/src/kwsearch.c
index d5653b8..06f0b79 100644
--- a/src/kwsearch.c
+++ b/src/kwsearch.c
@@ -83,12 +83,12 @@ mb_case_map_apply (mb_len_map_t const *map, size_t *off,
size_t *len)
{
if (map)
{
- intmax_t off_incr = 0;
- intmax_t len_incr = 0;
+ size_t off_incr = 0;
+ size_t len_incr = 0;
size_t k;
for (k = 0; k < *off; k++)
off_incr += map[k];
- for (k = *off; k < *off + *len; k++)
+ for (; k < *off + *len; k++)
len_incr += map[k];
*off += off_incr;
*len += len_incr;
-----------------------------------------------------------------------
Summary of changes:
src/kwsearch.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
grep
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v2.18-13-g26c2c2a,
Paul Eggert <=