gobject-introspection r804 - in trunk: . giscanner
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r804 - in trunk: . giscanner
- Date: Fri, 24 Oct 2008 09:17:02 +0000 (UTC)
Author: johan
Date: Fri Oct 24 09:17:02 2008
New Revision: 804
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=804&view=rev
Log:
2008-10-24 Johan Dahlin <johan gnome org>
* giscanner/scannerparser.y:
Check against division by zero for the modula operator.
This fixes header parsing of OSX system headers included
by libsoup.
Modified:
trunk/ChangeLog
trunk/giscanner/scannerparser.y
Modified: trunk/giscanner/scannerparser.y
==============================================================================
--- trunk/giscanner/scannerparser.y (original)
+++ trunk/giscanner/scannerparser.y Fri Oct 24 09:17:02 2008
@@ -352,7 +352,9 @@
{
$$ = gi_source_symbol_new (CSYMBOL_TYPE_CONST);
$$->const_int_set = TRUE;
- $$->const_int = $1->const_int % $3->const_int;
+ if ($3->const_int != 0) {
+ $$->const_int = $1->const_int % $3->const_int;
+ }
}
;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]