projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
82a9e1e
)
fix a couple of var types
David Mitchell [Mon, 3 May 2010 22:51:34 +0000 (23:51 +0100)]
these errors were introduced in my trie-allocation patch,
2e64971a6530d2645969bc489f564bfd3ce64993
regexec.c
patch
|
blob
|
blame
|
history
diff --git
a/regexec.c
b/regexec.c
index
4aa68ef
..
40f66a8
100644
(file)
--- a/
regexec.c
+++ b/
regexec.c
@@
-3271,8
+3271,8
@@
S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog)
{
/* Find next-highest word to process. Note that this code
* is O(N^2) per trie run (O(N) per branch), so keep tight */
- register U32 min = 0;
- register U32 word;
+ register U16 min = 0;
+ register U16 word;
register U16 const nextword = ST.nextword;
register reg_trie_wordinfo * const wordinfo
= ((reg_trie_data*)rexi->data->data[ARG(ST.me)])->wordinfo;
@@
-3312,7
+3312,7
@@
S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog)
U8 foldbuf[UTF8_MAXBYTES_CASE + 1];
STRLEN foldlen;
STRLEN len;
- U8 uvc;
+ UV uvc;
U8 *uscan;
while (chars) {