diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-31 10:05:38 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-31 10:55:38 +0900 |
commit | d2f663d6f185f62ef019434caf9bd6afd63849d4 (patch) | |
tree | b5a895326d0bc9b2dd88f3827de5fcbbc312a1f3 | |
parent | d180e405703b36c3f3a84334779c56bf9a3ea6a8 (diff) | |
download | ruby-d2f663d6f185f62ef019434caf9bd6afd63849d4.tar.gz |
STATIC_ASSERT for VM_METHOD_TYPE_MINIMUM_BITS
-rw-r--r-- | method.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -115,7 +115,8 @@ typedef enum { END_OF_ENUMERATION(VM_METHOD_TYPE) } rb_method_type_t; #define VM_METHOD_TYPE_MINIMUM_BITS 4 -/* TODO: STATIC_ASSERT for VM_METHOD_TYPE_MINIMUM_BITS */ +STATIC_ASSERT(VM_METHOD_TYPE_MINIMUM_BITS, + VM_METHOD_TYPE_REFINED <= (1<<VM_METHOD_TYPE_MINIMUM_BITS)); #ifndef rb_iseq_t typedef struct rb_iseq_struct rb_iseq_t; |