Preserve behavior as well..
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 20 Apr 2009 12:02:39 +0000 (14:02 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 20 Apr 2009 12:02:39 +0000 (14:02 +0200)
dfa/bset.c

index 49d4212..701778e 100644 (file)
@@ -258,9 +258,9 @@ void pr_charBSet (BSetHandle *sh, BSet src, void (*f) (int))
         i1 = trav_BSet (sh, src, ++i);
         if (i1 == i)
         {
-            ++i;
-            while ((i1=trav_BSet (sh, src, i)) == i)
-                ;
+            do
+                ++i;
+            while ((i1=trav_BSet (sh, src, i)) == i);
             if (i != i0+2)
                 f ('-');
             if (i-1 == '-')