summaryrefslogtreecommitdiff
path: root/src/post.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-10 19:58:06 -1000
committerJohn Wiegley <johnw@newartisans.com>2012-02-11 16:53:31 -1000
commit5e3e204766bc5ce0f6335d12de0c4f0f03f20d00 (patch)
treef5ee338785fb57ab604f267b95370a7539901ad6 /src/post.cc
parent9d1daa27e23864e0238c8fde2b6ad5f45ebe136a (diff)
downloadfork-ledger-5e3e204766bc5ce0f6335d12de0c4f0f03f20d00.tar.gz
fork-ledger-5e3e204766bc5ce0f6335d12de0c4f0f03f20d00.tar.bz2
fork-ledger-5e3e204766bc5ce0f6335d12de0c4f0f03f20d00.zip
Do not evaluate strings as booleans
Diffstat (limited to 'src/post.cc')
-rw-r--r--src/post.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/post.cc b/src/post.cc
index 4178c8bc..862460df 100644
--- a/src/post.cc
+++ b/src/post.cc
@@ -558,7 +558,7 @@ std::size_t post_t::xact_id() const
return id;
id++;
}
- assert(! "Failed to find posting within its transaction");
+ assert("Failed to find posting within its transaction" == NULL);
return 0;
}
@@ -570,7 +570,7 @@ std::size_t post_t::account_id() const
return id;
id++;
}
- assert(! "Failed to find posting within its transaction");
+ assert("Failed to find posting within its transaction" == NULL);
return 0;
}