incorect PyFile_Get macro

<[email protected]> Tue, 17 Sep 2002 21:13:48 +0200
Newsgroups gmane.comp.gnome.lib.xml.bindings
Message-ID <[email protected]>
Hi!

	I tried to dump a doc using xmlDoc.dump, but it didn't work
	(i'm working with libxml2-2.4.23). I traced the problem to an
	incorrect macro definition in libxml_wrap.h.

	#define PyFile_Get(v) (((v) == Py_None) ? NULL : \
		(PyFile_Check(v) ? NULL : (PyFile_AsFile(v))))
	
	is better defined as
	#define PyFile_Get(v) (((v) == Py_None) ? NULL : \
		(PyFile_Check(v) ? (PyFile_AsFile(v)) : NULL))
		
	isn't it?

P.S: cc me as i'm not subscribed.

-- 
"oh no, they use || and && and wtf is this >> crap!  quick, run!!"- 
Cyb