From 474b2a748bfdb55aac43bba998bc79a5c9d18675 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 15 Oct 2009 23:02:35 +0000 Subject: 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 --- src/repl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()->cppstr != "Nothing") + if (resultT->head()->str() != "Nothing") cenv.out << " : " << resultT << endl; Object::pool.collect(Object::pool.roots()); -- cgit v1.2.1