projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
785d655
)
Fix code fragment with undefined behavior.
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 20 Apr 2009 11:44:15 +0000
(13:44 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 20 Apr 2009 11:44:15 +0000
(13:44 +0200)
dfa/bset.c
patch
|
blob
|
history
diff --git
a/dfa/bset.c
b/dfa/bset.c
index
ecb1c24
..
49d4212
100644
(file)
--- a/
dfa/bset.c
+++ b/
dfa/bset.c
@@
-258,7
+258,8
@@
void pr_charBSet (BSetHandle *sh, BSet src, void (*f) (int))
i1 = trav_BSet (sh, src, ++i);
if (i1 == i)
{
- while ((i1=trav_BSet (sh, src, ++i)) == i)
+ ++i;
+ while ((i1=trav_BSet (sh, src, i)) == i)
;
if (i != i0+2)
f ('-');