diff options
Diffstat (limited to 'include/ruby/memory_view.h')
-rw-r--r-- | include/ruby/memory_view.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/memory_view.h b/include/ruby/memory_view.h index 83931038a0..42309d5afc 100644 --- a/include/ruby/memory_view.h +++ b/include/ruby/memory_view.h @@ -16,7 +16,7 @@ # include <stddef.h> /* size_t */ #endif -#if HAVE_SYS_TYPES_H +#ifdef HAVE_SYS_TYPES_H # include <sys/types.h> /* ssize_t */ #endif @@ -47,10 +47,10 @@ typedef struct { char format; /** :FIXME: what is a "native" size is unclear. */ - unsigned native_size_p: 1; + bool native_size_p; /** Endian of the component */ - unsigned little_endian_p: 1; + bool little_endian_p; /** The component's offset. */ size_t offset; |