diff --git a/common.cpp b/common.cpp index 83167605c..1a315668b 100644 --- a/common.cpp +++ b/common.cpp @@ -1266,7 +1266,7 @@ wchar_t *unescape(const wchar_t * orig, int flags) break; } - res=(res*base)|d; + res=(res*base)+d; } if ((res <= max_val))