diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-16 05:38:09 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:52 -0400 |
commit | e309cac9c17e989bb91db137db6d390b3ccbb29a (patch) | |
tree | 05e46a78203b46479a03ad359214115159c0ca12 /src/document.cc | |
parent | 8cdc8008c36bd03e44e43aef3fc84ff20df7bd34 (diff) | |
download | fork-ledger-e309cac9c17e989bb91db137db6d390b3ccbb29a.tar.gz fork-ledger-e309cac9c17e989bb91db137db6d390b3ccbb29a.tar.bz2 fork-ledger-e309cac9c17e989bb91db137db6d390b3ccbb29a.zip |
Removed warnings from -Wall compilation.
Diffstat (limited to 'src/document.cc')
-rw-r--r-- | src/document.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/document.cc b/src/document.cc index 3c04ed57..da7db95e 100644 --- a/src/document.cc +++ b/src/document.cc @@ -158,7 +158,8 @@ optional<const char *> document_t::lookup_name(nameid_t id) const } } else if (names) { - int index = id - 1000; + assert(id >= 1000); + std::size_t index = id - 1000; typedef names_t::nth_index<0>::type names_by_random_access; const names_by_random_access& random_access = names->get<0>(); if (index < random_access.size()) |