diff generator/abstractmetabuilder.cpp @ 393:1049b01aebd2

Fixed generator segfaults on OS X 10.6. Regarding the change to dgenerator.cpp, I am not actually sure if 0 is the correct value to pass, but it seems to work and the code which had been there before was just plain incorrect ? it read past the list boundaries.
author David Nadlinger <code@klickverbot.at>
date Sat, 28 Aug 2010 02:55:55 +0200
parents beb04f46ef4a
children
line wrap: on
line diff
--- a/generator/abstractmetabuilder.cpp	Sat Aug 28 02:17:15 2010 +0200
+++ b/generator/abstractmetabuilder.cpp	Sat Aug 28 02:55:55 2010 +0200
@@ -1723,7 +1723,7 @@
             newInfo.setVolatile(typei.isVolatile());
 
             AbstractMetaType *elementType = translateType(newInfo, ok);
-            if (!ok)
+            if (!(*ok))
                 return 0;
 
             for (int i=typeInfo.arrays.size()-1; i>=0; --i) {