summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/diff
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1995-04-23 08:35:30 +0000
committercgd <cgd@NetBSD.org>1995-04-23 08:35:30 +0000
commit0f099d92af5d2999cac9573e2c76e0b4d55ef183 (patch)
tree9e617e8d57624b4f5d5e851370833a3683645858 /gnu/usr.bin/diff
parent81584a34e6bac7fee98ff30281cfdcccfdfca263 (diff)
changes to make the src/gnu code compile happily on the alpha:
Mostly casts here and there to kill warnings or bugs. occasional addition of prototypes and/or changes to bring protos into scope.
Diffstat (limited to 'gnu/usr.bin/diff')
-rw-r--r--gnu/usr.bin/diff/regex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/diff/regex.c b/gnu/usr.bin/diff/regex.c
index 4b22b31a3c3..5d8c4566f5f 100644
--- a/gnu/usr.bin/diff/regex.c
+++ b/gnu/usr.bin/diff/regex.c
@@ -1001,7 +1001,7 @@ typedef struct
value. Assumes the variable `fail_stack'. Probably should only
be called from within `PUSH_FAILURE_POINT'. */
#define PUSH_FAILURE_ITEM(item) \
- fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item
+ fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) (long) item
/* The complement operation. Assumes `fail_stack' is nonempty. */
#define POP_FAILURE_ITEM() fail_stack.stack[--fail_stack.avail]
@@ -1168,10 +1168,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--) \
@@ -3994,7 +3994,7 @@ re_match_2_internal (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];
}
}