summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-03-15 07:25:09 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-03-15 07:25:09 -0700
commit618d7339f198fb9692719641e363d2da9378e651 (patch)
tree4f689befd7ad09b48dae2155afc90101b6b66aa0 /include
parent8d98b84543f148d4d0870da84623460b78c15a4e (diff)
parent5f992f8712f8f819c85f1851813c8248f4398241 (diff)
downloadmruby-618d7339f198fb9692719641e363d2da9378e651.tar.gz
mruby-618d7339f198fb9692719641e363d2da9378e651.zip
Merge pull request #1010 from monaka/pr-remove-meaningless-bitfields-in-irep
Remove bit-fields. They doesn't reduce memory on major environments.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/irep.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mruby/irep.h b/include/mruby/irep.h
index 100afb494..fe732a43a 100644
--- a/include/mruby/irep.h
+++ b/include/mruby/irep.h
@@ -12,10 +12,10 @@ extern "C" {
#endif
typedef struct mrb_irep {
- int idx:16;
- int nlocals:16;
- int nregs:16;
- int flags:8;
+ uint16_t idx;
+ uint16_t nlocals;
+ uint16_t nregs;
+ uint8_t flags;
mrb_code *iseq;
mrb_value *pool;