mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Use long instead of int
This commit is contained in:
parent
d868f4ca31
commit
36ff0521c1
2 changed files with 23 additions and 22 deletions
15
regint.h
15
regint.h
|
@ -387,6 +387,7 @@ typedef unsigned int BitStatusType;
|
|||
|
||||
|
||||
#define INT_MAX_LIMIT ((1UL << (SIZEOF_INT * 8 - 1)) - 1)
|
||||
#define LONG_MAX_LIMIT ((1UL << (SIZEOF_LONG * 8 - 1)) - 1)
|
||||
|
||||
#define DIGITVAL(code) ((code) - '0')
|
||||
#define ODIGITVAL(code) DIGITVAL(code)
|
||||
|
@ -875,7 +876,7 @@ typedef struct _OnigStackType {
|
|||
#ifdef USE_CACHE_MATCH_OPT
|
||||
typedef struct {
|
||||
UChar *addr;
|
||||
int num;
|
||||
long num;
|
||||
int outer_repeat;
|
||||
} OnigCacheIndex;
|
||||
#endif
|
||||
|
@ -903,12 +904,12 @@ typedef struct {
|
|||
uint64_t end_time;
|
||||
#endif
|
||||
#ifdef USE_CACHE_MATCH_OPT
|
||||
int num_fail;
|
||||
int enable_cache_match_opt;
|
||||
int num_cache_opcode;
|
||||
int num_cache_table;
|
||||
OnigCacheIndex *cache_index_table;
|
||||
uint8_t *match_cache;
|
||||
long num_fail;
|
||||
int enable_cache_match_opt;
|
||||
long num_cache_opcode;
|
||||
long num_cache_table;
|
||||
OnigCacheIndex* cache_index_table;
|
||||
uint8_t* match_cache;
|
||||
#endif
|
||||
} OnigMatchArg;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue