From cf377743861fe7ab6d1780c5652fb4141cf5e298 Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Sun, 7 Mar 2010 22:38:42 +0100 Subject: [PATCH] Clear up some std::size_t/int confusion and get rid of warnings. --- luabind/object.hpp | 2 +- src/inheritance.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/luabind/object.hpp b/luabind/object.hpp index f68c023..f7b7ca5 100644 --- a/luabind/object.hpp +++ b/luabind/object.hpp @@ -225,7 +225,7 @@ LUABIND_BINARY_OP_DEF(<, lua_lessthan) value_wrapper_traits::unwrap(interpreter , static_cast(v)); char const* p = lua_tostring(interpreter, -1); - int len = lua_strlen(interpreter, -1); + std::size_t len = lua_strlen(interpreter, -1); std::copy(p, p + len, std::ostream_iterator(os)); return os; } diff --git a/src/inheritance.cpp b/src/inheritance.cpp index 249d9d6..b0aea67 100644 --- a/src/inheritance.cpp +++ b/src/inheritance.cpp @@ -123,7 +123,7 @@ namespace struct queue_entry { - queue_entry(void* p, class_id vertex_id, std::size_t distance) + queue_entry(void* p, class_id vertex_id, int distance) : p(p) , vertex_id(vertex_id) , distance(distance) @@ -131,7 +131,7 @@ namespace void* p; class_id vertex_id; - std::size_t distance; + int distance; }; } // namespace unnamed -- 2.11.4.GIT