mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
gio/gregistrysettingsbackend.c: Use unsigned data type for bitfields that are only one-bit wide
Fixes the following warnings on CLang: ../glib/gio/gregistrysettingsbackend.c:1503:32: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion] child_item->readable = TRUE; ^ ~~~~ ../glib/gio/gregistrysettingsbackend.c:1567:28: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion] child_item->readable = TRUE; ^ ~~~~
This commit is contained in:
parent
20b0d292ca
commit
985cab7737
@ -443,7 +443,7 @@ typedef struct
|
||||
|
||||
gint32 ref_count : 9;
|
||||
|
||||
gint32 readable : 1;
|
||||
guint32 readable : 1;
|
||||
RegistryValue value;
|
||||
} RegistryCacheItem;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user