diff --git a/ChangeLog b/ChangeLog index 94e893cd..5fc261a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Sep 17 21:22:25 CEST 2002 Daniel Veillard + + * python/libxml_wrap.h: stupid bug found by mattam@netcourrier.com + Tue Sep 17 19:58:26 CEST 2002 Daniel Veillard * xmlIO.c: small portability glitch fixed. diff --git a/python/libxml_wrap.h b/python/libxml_wrap.h index 7202c320..752c7f71 100644 --- a/python/libxml_wrap.h +++ b/python/libxml_wrap.h @@ -81,7 +81,7 @@ typedef struct { /* FILE * have their own internal representation */ #define PyFile_Get(v) (((v) == Py_None) ? NULL : \ - (PyFile_Check(v) ? NULL : (PyFile_AsFile(v)))) + (PyFile_Check(v) ? (PyFile_AsFile(v)) : NULL)) PyObject * libxml_intWrap(int val);