mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Fix regression from last commit on single char operators
This commit is contained in:
parent
0dea62dd54
commit
defdb53a55
@ -2274,7 +2274,7 @@ namespace chaiscript
|
|||||||
|
|
||||||
for (const auto &oper : prefix_opers)
|
for (const auto &oper : prefix_opers)
|
||||||
{
|
{
|
||||||
const bool is_char = oper.size();
|
const bool is_char = oper.size() == 1;
|
||||||
if ((is_char && Char(oper.c_str()[0])) || (!is_char && Symbol(oper)))
|
if ((is_char && Char(oper.c_str()[0])) || (!is_char && Symbol(oper)))
|
||||||
{
|
{
|
||||||
if (!Operator(m_operators.size()-1)) {
|
if (!Operator(m_operators.size()-1)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user