diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-10 22:24:36 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-10 22:24:36 +0900 |
| commit | 86a48b7c48fad8cdaf747449c3df672ec24f3659 (patch) | |
| tree | 2792113a4e641416107813861344eb14f8c14019 /src | |
| parent | 04dffc239be2aed8215ac673241b530eb6abc68b (diff) | |
| parent | 49a048c54428fef85f8b52b82916b1a39112a51e (diff) | |
| download | mruby-86a48b7c48fad8cdaf747449c3df672ec24f3659.tar.gz mruby-86a48b7c48fad8cdaf747449c3df672ec24f3659.zip | |
Merge pull request #1840 from ksss/bit-field
set bit field for mrb_bool
Diffstat (limited to 'src')
| -rw-r--r-- | src/string.c | 2 | ||||
| -rw-r--r-- | src/symbol.c | 2 |
2 files changed, 2 insertions, 2 deletions
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; |
