aboutsummaryrefslogtreecommitdiffstats
path: root/src/resp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resp.cpp')
-rw-r--r--src/resp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resp.cpp b/src/resp.cpp
index e745455..cef2d0c 100644
--- a/src/resp.cpp
+++ b/src/resp.cpp
@@ -39,7 +39,7 @@ is_form(const AST* ast, const std::string& form)
if (!sym)
return false;
- return sym->cppstr == form;
+ return form == sym->sym();
}
bool
@@ -53,7 +53,7 @@ is_primitive(const PEnv& penv, const AST* ast)
if (!sym)
return false;
- return penv.primitives.find(sym->cppstr) != penv.primitives.end();
+ return penv.primitives.find(sym->sym()) != penv.primitives.end();
}
int