Index: libyaml/trunk/src/parser.c
===================================================================
--- libyaml/trunk/src/parser.c	(revision 213)
+++ libyaml/trunk/src/parser.c	(revision 216)
@@ -1253,5 +1253,5 @@
             }
             if (token->data.version_directive.major != 1
-                    && token->data.version_directive.minor != 1) {
+                    || token->data.version_directive.minor != 1) {
                 yaml_parser_set_parser_error(parser,
                         "found incompatible YAML document", token->start_mark);
