summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/regcomp.h b/regcomp.h
index f9e8c2e17b..bc7977d9af 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -271,10 +271,9 @@ struct regnode_2 {
#endif
-/* I16_MAX is no good for REG_INFTY because sizeof(short) > 2
- * is perfectly fine. In Cray C90 sizeof(short) == 4,
- * in Cray T90 sizeof(short) == 8. */
-#define REG_INFTY ((1<<15)-1)
+#ifndef
+# define REG_INFTY I16_MAX
+#endif
#ifdef REGALIGN
# define ARG_VALUE(arg) (arg)