aboutsummaryrefslogtreecommitdiffstats
path: root/typing.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-03-10 00:58:19 +0000
committerDavid Robillard <d@drobilla.net>2009-03-10 00:58:19 +0000
commitf8c11845f9440ef29f15445b3f864073bd051db9 (patch)
tree737e9698a0807aa0f1bd6c7725afa4901a7a34fa /typing.cpp
parent835fa4439303938731517dc56f185f012896e6f4 (diff)
downloadresp-f8c11845f9440ef29f15445b3f864073bd051db9.tar.gz
resp-f8c11845f9440ef29f15445b3f864073bd051db9.tar.bz2
resp-f8c11845f9440ef29f15445b3f864073bd051db9.zip
Tidy.
git-svn-id: http://svn.drobilla.net/resp/tuplr@79 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'typing.cpp')
-rw-r--r--typing.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/typing.cpp b/typing.cpp
index 161a959..80bc568 100644
--- a/typing.cpp
+++ b/typing.cpp
@@ -89,13 +89,13 @@ void
APrimitive::constrain(TEnv& tenv) const
{
const string n = dynamic_cast<ASymbol*>(at(0))->str();
- enum { ARITHMETIC, BINARY, BITWISE, COMPARISON } type;
+ enum { ARITHMETIC, BINARY, LOGICAL, COMPARISON } type;
if (n == "+" || n == "-" || n == "*" || n == "/")
type = ARITHMETIC;
else if (n == "%")
type = BINARY;
else if (n == "and" || n == "or" || n == "xor")
- type = BITWISE;
+ type = LOGICAL;
else if (n == "=" || n == "!=" || n == ">" || n == ">=" || n == "<" || n == "<=")
type = COMPARISON;
else
@@ -117,7 +117,7 @@ APrimitive::constrain(TEnv& tenv) const
tenv.constrain(at(1), tenv.type(this));
tenv.constrain(at(2), tenv.type(this));
break;
- case BITWISE:
+ case LOGICAL:
if (size() != 3)
throw Error((format("`%1%' requires exactly 2 arguments") % n).str(), loc);
tenv.constrain(this, tenv.named("Bool"));