ovsdb-data: Short-circuit ovsdb_datum_includes_all() in trivial case.
[openvswitch] / lib / ovsdb-parser.c
index e1832a999fce0d77cecbcd6e9cf6234bbbd0b2f9..c46c237ebd20deec3769d2544794985cfc03e04b 100644 (file)
@@ -80,7 +80,7 @@ ovsdb_parser_member(struct ovsdb_parser *parser, const char *name,
         return NULL;
     }
 
-    if ((value->type >= 0 && value->type < JSON_N_TYPES
+    if (((int) value->type >= 0 && value->type < JSON_N_TYPES
          && types & (1u << value->type))
         || (types & OP_ID && value->type == JSON_STRING
             && ovsdb_parser_is_id(value->u.string)))