Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80d1a7c

Browse files
committed
Merge pull request #733 from mdboom/clang-py3-fixes
Issues compiling with clang + Python 3.x
2 parents 6fce428 + ea417c7 commit 80d1a7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CXX/Python3/Objects.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ namespace Py
413413
{
414414
}
415415

416-
bool accepts( PyObject *pyob )
416+
virtual bool accepts( PyObject *pyob ) const
417417
{
418418
return pyob == NULL;
419419
}
@@ -1520,7 +1520,7 @@ namespace Py
15201520

15211521
int operator-( const iterator &other ) const
15221522
{
1523-
if( seq.ptr() != other.seq.ptr() )
1523+
if( seq->ptr() != other.seq->ptr() )
15241524
throw RuntimeError( "SeqBase<T>::iterator comparison error" );
15251525

15261526
return count - other.count;

0 commit comments

Comments
 (0)