Use uint32_t
instead of unsigned int
for the exact size
This commit is contained in:
parent
40d40a651e
commit
61bb5c0572
14
compile.c
14
compile.c
@ -11065,7 +11065,7 @@ rb_local_defined(ID id, const rb_iseq_t *iseq)
|
|||||||
#define IBF_ISEQ_ENABLE_LOCAL_BUFFER 0
|
#define IBF_ISEQ_ENABLE_LOCAL_BUFFER 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef unsigned int ibf_offset_t;
|
typedef uint32_t ibf_offset_t;
|
||||||
#define IBF_OFFSET(ptr) ((ibf_offset_t)(VALUE)(ptr))
|
#define IBF_OFFSET(ptr) ((ibf_offset_t)(VALUE)(ptr))
|
||||||
|
|
||||||
#define IBF_MAJOR_VERSION ISEQ_MAJOR_VERSION
|
#define IBF_MAJOR_VERSION ISEQ_MAJOR_VERSION
|
||||||
@ -11078,13 +11078,13 @@ typedef unsigned int ibf_offset_t;
|
|||||||
|
|
||||||
struct ibf_header {
|
struct ibf_header {
|
||||||
char magic[4]; /* YARB */
|
char magic[4]; /* YARB */
|
||||||
unsigned int major_version;
|
uint32_t major_version;
|
||||||
unsigned int minor_version;
|
uint32_t minor_version;
|
||||||
unsigned int size;
|
uint32_t size;
|
||||||
unsigned int extra_size;
|
uint32_t extra_size;
|
||||||
|
|
||||||
unsigned int iseq_list_size;
|
uint32_t iseq_list_size;
|
||||||
unsigned int global_object_list_size;
|
uint32_t global_object_list_size;
|
||||||
ibf_offset_t iseq_list_offset;
|
ibf_offset_t iseq_list_offset;
|
||||||
ibf_offset_t global_object_list_offset;
|
ibf_offset_t global_object_list_offset;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user