From fb6586ecdf2dff1e8333e0216b14a69835f6e0f2 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 25 Oct 2007 23:52:35 +0000 Subject: [PATCH] Fix unary minus warning git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10045 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/ruby/rubyiterators.swg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Lib/ruby/rubyiterators.swg b/Lib/ruby/rubyiterators.swg index b2482a61d..96ca1e62b 100644 --- a/Lib/ruby/rubyiterators.swg +++ b/Lib/ruby/rubyiterators.swg @@ -72,7 +72,8 @@ namespace swig { virtual self_type* previous( size_t n = 1 ) { - return this->advance( -n ); + ptrdiff_t nn = n; + return this->advance( -nn ); } virtual VALUE to_s() const { @@ -228,7 +229,8 @@ namespace swig { virtual self_type* previous( size_t n = 1 ) { - return this->advance( -n ); + ptrdiff_t nn = n; + return this->advance( -nn ); } bool operator == (const ConstIterator& x) const