diff options
| author | Masaki Muranaka <[email protected]> | 2013-03-13 13:30:40 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-03-14 15:13:12 +0900 |
| commit | 1ffc9ba3255f8b63164c42ea8304115f5a6b2464 (patch) | |
| tree | 696cc7a62568dd72974e5a20c7fa8486cb5b58e2 /src/gc.c | |
| parent | 0739960b7fab2ce61bbeaedef7680cd4805a03f4 (diff) | |
| download | mruby-1ffc9ba3255f8b63164c42ea8304115f5a6b2464.tar.gz mruby-1ffc9ba3255f8b63164c42ea8304115f5a6b2464.zip | |
Define type mrb_bool. It is typedef-ed to _Bool on C99, unsigned int on MSVC.
It is safer than applying 1bit bit-fields to signed int.
For forward compatibility, you should substiture only 1 or 0 for the variable typed mrb_bool.
Diffstat (limited to 'src/gc.c')
| -rw-r--r-- | src/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -197,7 +197,7 @@ struct heap_page { struct heap_page *next; struct heap_page *free_next; struct heap_page *free_prev; - unsigned int old:1; + mrb_bool old:1; RVALUE objects[MRB_HEAP_PAGE_SIZE]; }; |
