diff options
| -rw-r--r-- | mrbgems/mruby-random/src/mt19937ar.h | 2 | ||||
| -rw-r--r-- | src/string.c | 2 | ||||
| -rw-r--r-- | src/symbol.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-random/src/mt19937ar.h b/mrbgems/mruby-random/src/mt19937ar.h index 504355193..9bf150190 100644 --- a/mrbgems/mruby-random/src/mt19937ar.h +++ b/mrbgems/mruby-random/src/mt19937ar.h @@ -15,7 +15,7 @@ typedef struct { }; mrb_int seed; - mrb_bool has_seed; + mrb_bool has_seed : 1; } mt_state; void mrb_random_init_genrand(mt_state *, unsigned long); diff --git a/src/string.c b/src/string.c index 3d3f084ca..dff8de90f 100644 --- a/src/string.c +++ b/src/string.c @@ -41,7 +41,7 @@ const char mrb_digitmap[] = "0123456789abcdefghijklmnopqrstuvwxyz"; typedef struct mrb_shared_string { - mrb_bool nofree; + mrb_bool nofree : 1; int refcnt; char *ptr; mrb_int len; diff --git a/src/symbol.c b/src/symbol.c index cc99c15fc..f2ead15ff 100644 --- a/src/symbol.c +++ b/src/symbol.c @@ -12,7 +12,7 @@ /* ------------------------------------------------------ */ typedef struct symbol_name { - mrb_bool lit; + mrb_bool lit : 1; uint16_t len; const char *name; } symbol_name; |
