mirror of
https://github.com/holub/mame
synced 2025-05-29 17:13:05 +03:00
fix for visual studio (nw)
This commit is contained in:
parent
716361fd6a
commit
1756a54c74
@ -83,13 +83,13 @@ void pfunction::compile_postfix(const std::vector<pstring> &inputs,
|
||||
|
||||
static int get_prio(pstring v)
|
||||
{
|
||||
if (v == "(" or v == ")")
|
||||
if (v == "(" || v == ")")
|
||||
return 1;
|
||||
else if (v.left(v.begin()+1) >= "a" && v.left(v.begin()+1) <= "z")
|
||||
return 0;
|
||||
else if (v == "*" or v == "/")
|
||||
else if (v == "*" || v == "/")
|
||||
return 20;
|
||||
else if (v == "+" or v == "-")
|
||||
else if (v == "+" || v == "-")
|
||||
return 10;
|
||||
else if (v == "^")
|
||||
return 30;
|
||||
|
Loading…
Reference in New Issue
Block a user