From 800e9d80a31dee8336d1dc3ae3457b0bc80c3a0f Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Wed, 11 Mar 2015 16:32:56 +0000 Subject: [PATCH] Number of high (wide) spans not necessarily depends on code unit size. --- re2c/code.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0