diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:17:52 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:17:52 -0600 |
commit | c3a9a7d2c584a7651426b3516f4e9991c8063e02 (patch) | |
tree | 6a7748588d90d3d9e0032903548b3411d7277dd6 /src/py_xact.cc | |
parent | c6b51a2635bdf7da803dd2fc8251d6c290f134a4 (diff) | |
download | fork-ledger-c3a9a7d2c584a7651426b3516f4e9991c8063e02.tar.gz fork-ledger-c3a9a7d2c584a7651426b3516f4e9991c8063e02.tar.bz2 fork-ledger-c3a9a7d2c584a7651426b3516f4e9991c8063e02.zip |
Fixed many Clang type conversion warnings with static_cast
Diffstat (limited to 'src/py_xact.cc')
-rw-r--r-- | src/py_xact.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/py_xact.cc b/src/py_xact.cc index adaf81a2..604d8d59 100644 --- a/src/py_xact.cc +++ b/src/py_xact.cc @@ -44,7 +44,7 @@ namespace { long posts_len(xact_base_t& xact) { - return xact.posts.size(); + return static_cast<long>(xact.posts.size()); } post_t& posts_getitem(xact_base_t& xact, long i) @@ -53,7 +53,7 @@ namespace { static xact_base_t * last_xact = NULL; static posts_list::iterator elem; - long len = xact.posts.size(); + long len = static_cast<long>(xact.posts.size()); if (labs(i) >= len) { PyErr_SetString(PyExc_IndexError, _("Index out of range")); |