From 1251cbda9e2655c29293a8591077e62339e096a4 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 19 Nov 2002 05:40:04 +0000 Subject: [PATCH] gee, you'ld think gnu would get pointer <-> int portability right :P --- libs/gib/regex.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/gib/regex.c b/libs/gib/regex.c index 66c64b364..81ab69f5b 100644 --- a/libs/gib/regex.c +++ b/libs/gib/regex.c @@ -2498,10 +2498,10 @@ typedef struct DEBUG_PRINT_COMPILED_PATTERN (bufp, pat, pend); \ \ /* Restore register info. */ \ - high_reg = (unsigned) POP_FAILURE_ITEM (); \ + high_reg = (unsigned long) POP_FAILURE_ITEM (); \ DEBUG_PRINT2 (" Popping high active reg: %d\n", high_reg); \ \ - low_reg = (unsigned) POP_FAILURE_ITEM (); \ + low_reg = (unsigned long) POP_FAILURE_ITEM (); \ DEBUG_PRINT2 (" Popping low active reg: %d\n", low_reg); \ \ for (this_reg = high_reg; this_reg >= low_reg; this_reg--) \ @@ -3214,8 +3214,8 @@ re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) unsigned num_regs = bufp->re_nsub + 1; /* The currently active registers. */ - unsigned lowest_active_reg = NO_LOWEST_ACTIVE_REG; - unsigned highest_active_reg = NO_HIGHEST_ACTIVE_REG; + unsigned long lowest_active_reg = NO_LOWEST_ACTIVE_REG; + unsigned long highest_active_reg = NO_HIGHEST_ACTIVE_REG; /* Information on the contents of registers. These are pointers into the input strings; they record just what was matched (on this @@ -3768,7 +3768,7 @@ re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) regstart[r] = old_regstart[r]; /* xx why this test? */ - if ((int) old_regend[r] >= (int) regstart[r]) + if ((long) old_regend[r] >= (long) regstart[r]) regend[r] = old_regend[r]; } } @@ -4075,7 +4075,7 @@ re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) actual values. Otherwise, we will restore only one register from the stack, since lowest will == highest in `pop_failure_point'. */ - unsigned dummy_low_reg, dummy_high_reg; + unsigned long dummy_low_reg, dummy_high_reg; unsigned char *pdummy; const char *sdummy;