mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 11:56:16 +01:00
garray: Just use one bit to hold the null teminated state
This is probably ignored for saving space because of padding optimizations, but since we want this value to be either 0 or 1, this enforces this too.
This commit is contained in:
parent
670c1f4173
commit
9ea56848c2
@ -1072,7 +1072,7 @@ struct _GRealPtrArray
|
||||
guint len;
|
||||
guint alloc;
|
||||
gatomicrefcount ref_count;
|
||||
guint8 null_terminated; /* always either 0 or 1, so it can be added to array lengths */
|
||||
guint8 null_terminated : 1; /* always either 0 or 1, so it can be added to array lengths */
|
||||
GDestroyNotify element_free_func;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user