aboutsummaryrefslogtreecommitdiffstats
path: root/regint.h
diff options
context:
space:
mode:
authorTSUYUSATO Kitsune <make.just.on@gmail.com>2022-11-09 12:19:52 +0900
committerYusuke Endoh <mame@ruby-lang.org>2022-11-09 23:21:26 +0900
commit36ff0521c1e81f83bf050d428815ae7413960136 (patch)
tree09506565eca5114778179ee2df529c2cc292325e /regint.h
parentd868f4ca31339095991e162e010fcda0f2d7bd39 (diff)
downloadruby-36ff0521c1e81f83bf050d428815ae7413960136.tar.gz
Use long instead of int
Diffstat (limited to 'regint.h')
-rw-r--r--regint.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/regint.h b/regint.h
index 12b5d5c70a..75073e6377 100644
--- a/regint.h
+++ b/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;