sd-bus: fix implicit downcast of bitfield reported by LGTM

This commit is contained in:
Yu Watanabe
2018-06-27 13:28:28 +09:00
parent ad4bc33522
commit affaed1e55
+1 -1
View File
@@ -63,7 +63,7 @@ int introspect_write_child_nodes(struct introspect *i, Set *s, const char *prefi
return 0;
}
static void introspect_write_flags(struct introspect *i, int type, int flags) {
static void introspect_write_flags(struct introspect *i, int type, uint64_t flags) {
if (flags & SD_BUS_VTABLE_DEPRECATED)
fputs(" <annotation name=\"org.freedesktop.DBus.Deprecated\" value=\"true\"/>\n", i->f);