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.
svn path=/trunk/; revision=804
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.
+
+2008-10-24 Johan Dahlin <johan@gnome.org>
+
* CONTRIBUTORS:
* Makefile.am:
Add a CONTRIBUTORS file and dist it.
{
$$ = 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;
+ }
}
;