X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fovsdb-parser.c;h=c46c237ebd20deec3769d2544794985cfc03e04b;hb=29ebe8803c3a1ef03cbc92fbc352a2cdce5a8f55;hp=e1832a999fce0d77cecbcd6e9cf6234bbbd0b2f9;hpb=53d046612df6c88ad8b02c8e99bbfb6e45fe2326;p=sliver-openvswitch.git diff --git a/lib/ovsdb-parser.c b/lib/ovsdb-parser.c index e1832a999..c46c237eb 100644 --- a/lib/ovsdb-parser.c +++ b/lib/ovsdb-parser.c @@ -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)))