From: Mike Gilbert Date: Fri, 27 Feb 2015 23:07:43 +0000 (-0500) Subject: Pad version with '0' instead of nulls X-Git-Tag: 0.14.1~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23c26a75a1f4d043284f72de64e7f0686fbdf047;p=re2c Pad version with '0' instead of nulls This produces a more usable output for scripts. --- diff --git a/re2c/main.cc b/re2c/main.cc index cb07d15e..fc6f9109 100644 --- a/re2c/main.cc +++ b/re2c/main.cc @@ -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; }