Fix unary minus warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10045 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1c163430e3
commit
fb6586ecdf
1 changed files with 4 additions and 2 deletions
|
|
@ -72,7 +72,8 @@ namespace swig {
|
||||||
|
|
||||||
virtual self_type* previous( size_t n = 1 )
|
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 {
|
virtual VALUE to_s() const {
|
||||||
|
|
@ -228,7 +229,8 @@ namespace swig {
|
||||||
|
|
||||||
virtual self_type* previous( size_t n = 1 )
|
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
|
bool operator == (const ConstIterator& x) const
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue