diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-10-19 18:06:45 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-11-09 16:01:01 +0900 |
commit | 61bb5c0572cf8c35fb8f3b3accfb301df13d61da (patch) | |
tree | 5740ab794caed55bba0cb73e6135e5e3a404da25 /compile.c | |
parent | 40d40a651ef8d9cd150503fc264b1c922f63fe61 (diff) |
Use `uint32_t` instead of `unsigned int` for the exact size
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -11065,7 +11065,7 @@ rb_local_defined(ID id, const rb_iseq_t *iseq) #define IBF_ISEQ_ENABLE_LOCAL_BUFFER 0 #endif -typedef unsigned int ibf_offset_t; +typedef uint32_t ibf_offset_t; #define IBF_OFFSET(ptr) ((ibf_offset_t)(VALUE)(ptr)) #define IBF_MAJOR_VERSION ISEQ_MAJOR_VERSION @@ -11078,13 +11078,13 @@ typedef unsigned int ibf_offset_t; struct ibf_header { char magic[4]; /* YARB */ - unsigned int major_version; - unsigned int minor_version; - unsigned int size; - unsigned int extra_size; + uint32_t major_version; + uint32_t minor_version; + uint32_t size; + uint32_t extra_size; - unsigned int iseq_list_size; - unsigned int global_object_list_size; + uint32_t iseq_list_size; + uint32_t global_object_list_size; ibf_offset_t iseq_list_offset; ibf_offset_t global_object_list_offset; }; |