]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapigen: Fix metadata pattern handling
authorJürg Billeter <j@bitron.ch>
Sun, 16 Jan 2011 09:27:02 +0000 (10:27 +0100)
committerJürg Billeter <j@bitron.ch>
Sun, 16 Jan 2011 09:29:44 +0000 (10:29 +0100)
vapigen/valagidlparser.vala

index 16c95dbec9518ecd8708b1f28f931415cf2b0e75..46bb28334058dd978b864f75033576453e5e6d55 100644 (file)
@@ -2628,8 +2628,8 @@ public class Vala.GIdlParser : CodeVisitor {
                        foreach (PatternSpec* pattern in pattern_specs) {
                                var pspec = codenode_attributes_patterns[pattern];
 
-                               if ((dot_required && -1 != pspec.index_of_char ('.')) ||
-                                   (colon_required && -1 != pspec.index_of_char (':'))) {
+                               if ((dot_required && -1 == pspec.index_of_char ('.')) ||
+                                   (colon_required && -1 == pspec.index_of_char (':'))) {
                                        continue;
                                }