From eba7a2df165e5e3bdfc24e3ef55a2122b66b01e8 Mon Sep 17 00:00:00 2001 From: helly Date: Mon, 17 Nov 2008 22:04:29 +0000 Subject: [PATCH] - Improved check for neccessity for translation --- re2c/dfa.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/re2c/dfa.cc b/re2c/dfa.cc index df6401d7..3bbd5765 100644 --- a/re2c/dfa.cc +++ b/re2c/dfa.cc @@ -10,7 +10,7 @@ namespace re2c void prtChOrHex(std::ostream& o, uint c, bool useTalx) { - int oc = (int)((re2c::wFlag && !re2c::eFlag) || !useTalx ? c : re2c::talx[c]); + uint oc = eFlag && !wFlag && useTalx ? re2c::talx[c] : c; if ((oc < 256) && (isprint(oc) || isspace(oc))) { @@ -28,7 +28,7 @@ void prtChOrHex(std::ostream& o, uint c, bool useTalx) void prtHex(std::ostream& o, uint c, bool useTalx) { - int oc = (int)((re2c::wFlag && !re2c::eFlag) || !useTalx ? c : re2c::talx[c]); + uint oc = eFlag && !wFlag && useTalx ? re2c::talx[c] : c; if (re2c::uFlag) { @@ -60,7 +60,7 @@ void prtHex(std::ostream& o, uint c, bool useTalx) void prtCh(std::ostream& o, uint c, bool useTalx) { - int oc = (int)((re2c::wFlag && !re2c::eFlag) || !useTalx ? c : re2c::talx[c]); + uint oc = eFlag && !wFlag && useTalx ? re2c::talx[c] : c; switch (oc) { -- 2.40.0