diff options
author | Teddy <ted.sybil@gmail.com> | 2013-08-04 23:35:59 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2013-08-04 23:35:59 +0800 |
commit | 645549b8a42844fc5a8042a4808c8ebf5050d7da (patch) | |
tree | 6f96ef92e16f332a6eb3860450404903865a12fe /main.cpp | |
parent | acb298c7f864f9862859320555b416c97632d2fa (diff) |
added support for `cons`, `car`, `cdr`
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ void tree_print(Cons *ptr) { if (!ptr || ptr == empty_list) return; ptr->_debug_print(); tree_print(dynamic_cast<Cons*>(ptr->car)); - tree_print(ptr->cdr); + tree_print(TO_CONS(ptr->cdr)); } #endif |