From: Ulya Trofimovich Date: Fri, 26 Jun 2015 13:09:51 +0000 (+0100) Subject: Don't check range bounds in pretty-printing function. X-Git-Tag: 0.15~197 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f88d07ef6d3e71f882dd011fe58676087221f32;p=re2c Don't check range bounds in pretty-printing function. --- diff --git a/re2c/src/codegen/print.cc b/re2c/src/codegen/print.cc index 09d0a1a8..1c67fe42 100644 --- a/re2c/src/codegen/print.cc +++ b/re2c/src/codegen/print.cc @@ -160,13 +160,7 @@ void prtChOrHexForSpan(std::ostream& o, uint32_t c) void printSpan(std::ostream& o, uint32_t lb, uint32_t ub) { - if (lb > ub) - { - o << "*"; - } - o << "["; - if ((ub - lb) == 1) { prtChOrHexForSpan(o, lb); @@ -177,7 +171,6 @@ void printSpan(std::ostream& o, uint32_t lb, uint32_t ub) o << "-"; prtChOrHexForSpan(o, ub - 1); } - o << "]"; }