summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>1998-06-09 19:02:52 -0400
committerGurusamy Sarathy <gsar@cpan.org>1998-06-10 07:35:29 +0000
commit83cfe48c09335ee3e3bb5bf1d853188ba46fbd0a (patch)
treec82bbb26c8c0bfe7c50b7dd33c8929197dfcc1a4
parentbfab39a2c6d2aba761739058fc35b9c9412a492b (diff)
downloadperl-83cfe48c09335ee3e3bb5bf1d853188ba46fbd0a.tar.gz
Re: [PATCH 5.004_66] REG_INFTY patch corrected
Message-Id: <199806100302.XAA04958@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@1109
-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)