]> granicus.if.org Git - re2c/commitdiff
Pad version with '0' instead of nulls
authorMike Gilbert <floppym@gentoo.org>
Fri, 27 Feb 2015 23:07:43 +0000 (18:07 -0500)
committerUlya Trofimovich <skvadrik@gmail.com>
Fri, 27 Feb 2015 23:42:59 +0000 (23:42 +0000)
This produces a more usable output for scripts.

re2c/main.cc

index cb07d15e21d015095774560c31da7b0e4da2e269..fc6f910954d394a5da8b32da07c47055e6de3fe1 100644 (file)
@@ -330,7 +330,7 @@ int main(int argc, char *argv[])
                                {
                                        vernum.insert(4, "0");
                                }
-                               vernum.resize(6);
+                               vernum.resize(6, '0');
                                cout << vernum << endl;
                                return 2;
                        }