lib: Suppress comparison warnings in ovsdb libraries.
[openvswitch] / lib / ovsdb-types.h
index e852391ccd44bc834d33f21673b3154303f05be5..a7b4e20846e4f407a28d8061c9969274698cde94 100644 (file)
@@ -168,7 +168,7 @@ struct json *ovsdb_type_to_json(const struct ovsdb_type *);
 static inline bool
 ovsdb_atomic_type_is_valid(enum ovsdb_atomic_type atomic_type)
 {
-    return atomic_type >= 0 && atomic_type < OVSDB_N_TYPES;
+    return (int) atomic_type >= 0 && atomic_type < OVSDB_N_TYPES;
 }
 
 static inline bool