Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set bit field for mrb_bool

  • Loading branch information...
commit 49a048c54428fef85f8b52b82916b1a39112a51e 1 parent f168e12
@ksss ksss authored
View
2  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);
View
2  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;
View
2  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;
Please sign in to comment.
Something went wrong with that request. Please try again.