From: Ulya Trofimovich Date: Wed, 11 Mar 2015 16:32:56 +0000 (+0000) Subject: Number of high (wide) spans not necessarily depends on code unit size. X-Git-Tag: 0.15~348 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=800e9d80a31dee8336d1dc3ae3457b0bc80c3a0f;p=re2c Number of high (wide) spans not necessarily depends on code unit size. --- diff --git a/re2c/code.cc b/re2c/code.cc index 9f4df188..692b4191 100644 --- a/re2c/code.cc +++ b/re2c/code.cc @@ -876,7 +876,7 @@ static std::string genGotoProlog (OutputFile & o, uint ind, const State *from, c : mapCodeName["yych"]; readCh = false; - if (encoding.szCodeUnit() > 1) // hSpans > 0 + if (nsp > 0) { o << indent(ind) << "if (" << sYych <<" & ~0xFF) {\n"; genBase(o, ind + 1, from, next, readCh, sp, nsp);