projects
/
selector.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo.
[selector.git]
/
selector.c
diff --git
a/selector.c
b/selector.c
index
ad72cc2
..
6695bb6
100644
(file)
--- a/
selector.c
+++ b/
selector.c
@@
-3,7
+3,7
@@
* selector is a simple command line utility for selection of strings
* with a dynamic pattern-matching.
*
* selector is a simple command line utility for selection of strings
* with a dynamic pattern-matching.
*
- * Copyright (c) 2009
, 2010, 2011, 2012
Francois Fleuret
+ * Copyright (c) 2009
-2013
Francois Fleuret
* Written by Francois Fleuret <francois@fleuret.org>
*
* This file is part of selector.
* Written by Francois Fleuret <francois@fleuret.org>
*
* This file is part of selector.
@@
-339,7
+339,7
@@
int add_interval(int n, int *switches, int start, int end) {
while(g < n && switches[g] <= end) { g++; }
if(f == n) {
while(g < n && switches[g] <= end) { g++; }
if(f == n) {
- /* switches[
n
-1] start end */
+ /* switches[
f
-1] start end */
/* XXXXXXXXXXXX| */
switches[f] = start;
switches[f+1] = end;
/* XXXXXXXXXXXX| */
switches[f] = start;
switches[f+1] = end;