From 72b2faf60447b3b21615f24f3b3d7de243540b37 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 25 Oct 2004 19:11:25 +0000 Subject: [PATCH] no more zero value accepted for pointers git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6498 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/pyrun.swg | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg index ddc72ddf8..a127feb9d 100644 --- a/Lib/python/pyrun.swg +++ b/Lib/python/pyrun.swg @@ -326,13 +326,6 @@ type_error: goto type_check; } } - } else if (PyInt_Check(obj)) { - /* here we check for the only accepted zero value */ - long v = PyInt_AsLong(obj); - if (v == 0) { - *ptr = 0; - return 0; - } } } if (flags & SWIG_POINTER_EXCEPTION) {