summaryrefslogtreecommitdiff
path: root/src/py_account.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/py_account.cc')
-rw-r--r--src/py_account.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/py_account.cc b/src/py_account.cc
index 07d6ed95..5ef86871 100644
--- a/src/py_account.cc
+++ b/src/py_account.cc
@@ -44,7 +44,7 @@ namespace {
long accounts_len(account_t& account)
{
- return account.accounts.size();
+ return static_cast<long>(account.accounts.size());
}
account_t& accounts_getitem(account_t& account, long i)
@@ -53,7 +53,7 @@ namespace {
static account_t * last_account = NULL;
static accounts_map::iterator elem;
- long len = account.accounts.size();
+ long len = static_cast<long>(account.accounts.size());
if (labs(i) >= len) {
PyErr_SetString(PyExc_IndexError, _("Index out of range"));