summaryrefslogtreecommitdiff
path: root/src/compare.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-20 17:20:16 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-20 17:20:22 -0600
commitbc9ff7095fbfa1812e4f47dbf8531dec76cd0d00 (patch)
tree1e8deee7874598f2f827e62984ebb6383e049a1e /src/compare.cc
parent4e8c9805bb0a68f7d4d20696f28db7d763e370e6 (diff)
downloadfork-ledger-bc9ff7095fbfa1812e4f47dbf8531dec76cd0d00.tar.gz
fork-ledger-bc9ff7095fbfa1812e4f47dbf8531dec76cd0d00.tar.bz2
fork-ledger-bc9ff7095fbfa1812e4f47dbf8531dec76cd0d00.zip
Introduced a new SCOPE expression terminal
Diffstat (limited to 'src/compare.cc')
-rw-r--r--src/compare.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compare.cc b/src/compare.cc
index 12114c7d..cdc96a86 100644
--- a/src/compare.cc
+++ b/src/compare.cc
@@ -44,7 +44,7 @@ void push_sort_value(std::list<sort_value_t>& sort_values,
if (node->kind == expr_t::op_t::O_CONS) {
while (node && node->kind == expr_t::op_t::O_CONS) {
push_sort_value(sort_values, node->left(), scope);
- node = node->right();
+ node = node->has_right() ? node->right() : NULL;
}
} else {
bool inverted = false;