From 645549b8a42844fc5a8042a4808c8ebf5050d7da Mon Sep 17 00:00:00 2001 From: Teddy Date: Sun, 4 Aug 2013 23:35:59 +0800 Subject: added support for `cons`, `car`, `cdr` --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index e8fe418..230d077 100644 --- a/main.cpp +++ b/main.cpp @@ -11,7 +11,7 @@ void tree_print(Cons *ptr) { if (!ptr || ptr == empty_list) return; ptr->_debug_print(); tree_print(dynamic_cast(ptr->car)); - tree_print(ptr->cdr); + tree_print(TO_CONS(ptr->cdr)); } #endif -- cgit v1.2.3