diff options
author | TSUYUSATO Kitsune <make.just.on@gmail.com> | 2022-11-09 12:19:52 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2022-11-09 23:21:26 +0900 |
commit | 36ff0521c1e81f83bf050d428815ae7413960136 (patch) | |
tree | 09506565eca5114778179ee2df529c2cc292325e /regint.h | |
parent | d868f4ca31339095991e162e010fcda0f2d7bd39 (diff) |
Use long instead of int
Diffstat (limited to 'regint.h')
-rw-r--r-- | regint.h | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -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; |