[xml-bindings]incorect PyFile_Get macro



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]