aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-15 23:02:35 +0000
committerDavid Robillard <d@drobilla.net>2009-10-15 23:02:35 +0000
commit474b2a748bfdb55aac43bba998bc79a5c9d18675 (patch)
tree5efda36906f193c1bf13832a7d1d6f3d2888675d /src/repl.cpp
parentbe047421b9f79bff5af05ab3eb9f20fb9e1c7215 (diff)
downloadresp-474b2a748bfdb55aac43bba998bc79a5c9d18675.tar.gz
resp-474b2a748bfdb55aac43bba998bc79a5c9d18675.tar.bz2
resp-474b2a748bfdb55aac43bba998bc79a5c9d18675.zip
Fix crash caused by making symbols in type expressions types themselves.
git-svn-id: http://svn.drobilla.net/resp/tuplr@234 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/repl.cpp')
-rw-r--r--src/repl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index a94e51c..d66fe36 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -64,7 +64,7 @@ callPrintCollect(CEnv& cenv, CFunc f, AST* result, AType* resultT, bool execute)
cenv.out << cenv.engine()->call(cenv, f, resultT);
// Print type (if applicable)
- if (resultT->head()->to<const ASymbol*>()->cppstr != "Nothing")
+ if (resultT->head()->str() != "Nothing")
cenv.out << " : " << resultT << endl;
Object::pool.collect(Object::pool.roots());