File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -791,7 +791,7 @@ internal static bool PyObject_IsIterable(IntPtr pointer)
791
791
return false;
792
792
#endif
793
793
IntPtr tp_iter = Marshal. ReadIntPtr( ob_type , TypeOffset . tp_iter ) ;
794
- return tp_iter != null ;
794
+ return tp_iter != IntPtr . Zero ;
795
795
}
796
796
797
797
[ DllImport ( PythonDll , CallingConvention = CallingConvention . Cdecl) ]
@@ -1449,7 +1449,7 @@ internal static bool PyIter_Check(IntPtr pointer)
1449
1449
return false;
1450
1450
#endif
1451
1451
IntPtr tp_iternext = Marshal. ReadIntPtr( ob_type, TypeOffset. tp_iternext) ;
1452
- return tp_iternext != null && tp_iternext != _PyObject_NextNotImplemented;
1452
+ return tp_iternext != IntPtr . Zero && tp_iternext != _PyObject_NextNotImplemented;
1453
1453
}
1454
1454
1455
1455
[ DllImport( PythonDll, CallingConvention = CallingConvention. Cdecl) ]
You can’t perform that action at this time.
0 commit comments