From c3a9a7d2c584a7651426b3516f4e9991c8063e02 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 17 Feb 2012 15:17:52 -0600 Subject: Fixed many Clang type conversion warnings with static_cast --- src/py_xact.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/py_xact.cc') 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(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(xact.posts.size()); if (labs(i) >= len) { PyErr_SetString(PyExc_IndexError, _("Index out of range")); -- cgit v1.2.3