From e39fdcbc873055f35dae4fb9a529b4aa18e18bc6 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 24 Sep 2006 20:38:55 +0000 Subject: (init_pygobject_check): Add parentheses "around && within ||" to please gcc. --- ChangeLog | 5 +++++ gobject/pygobject.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b72bba2..17a86dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-09-24 Gustavo J. A. M. Carneiro + + * gobject/pygobject.h (init_pygobject_check): Add parentheses + "around && within ||" to please gcc. + 2006-09-21 Cedric Gustin * dsextras.py: Catch ImportError exception when codegen is not diff --git a/gobject/pygobject.h b/gobject/pygobject.h index a8ab6ed..68df6d3 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -312,7 +312,7 @@ struct _PyGObject_Functions *_PyGObject_API; return; \ if (req_major != found_major || \ req_minor > found_minor || \ - req_minor == found_minor && req_micro > found_micro) { \ + (req_minor == found_minor && req_micro > found_micro)) { \ PyErr_Format(PyExc_ImportError, \ "PyGObject version mismatch, %d.%d.%d is required, " \ "found %d.%d.%d.", req_major, req_minor, req_micro, \ -- cgit