diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-02-06 01:46:37 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-02-06 01:46:37 +0300 |
commit | 3e6446249be73d992d657feb9dfba43e8152c40c (patch) | |
tree | 338d6567df335ec2aa341f20f981aa3258afa133 /src/qreg.c | |
parent | c7397423f1151eb5f2424c1d58672f388d6e2fc9 (diff) | |
download | sciteco-3e6446249be73d992d657feb9dfba43e8152c40c.tar.gz |
use bool instead of guint for 1-bit fields
* gboolean cannot be used since it is a signed type
* bool is still more readable, even though we mostly use glib typedefs.
* AFAIK the glib types are deprecated, so sooner or later we will switch
to stdint/stdbool types anyway.
Diffstat (limited to 'src/qreg.c')
-rw-r--r-- | src/qreg.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -18,6 +18,7 @@ #include "config.h" #endif +#include <stdbool.h> #include <string.h> #include <glib.h> @@ -1145,7 +1146,7 @@ struct teco_machine_qregspec_t { union { struct { teco_qreg_type_t type : 8; - guint parse_only : 1; + bool parse_only : 1; }; guint __flags; }; |