diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-10-01 12:59:34 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-10-01 13:18:52 -0600 |
commit | e13b33f9f0a44763d79a6422242f39aaa4d780e3 (patch) | |
tree | f7c922b1eb7719d3f8555a2929b92e1484f01578 /handy.h | |
parent | 4819dd2a106804e2c3b00007d9e460a64a8348dd (diff) | |
download | perl-e13b33f9f0a44763d79a6422242f39aaa4d780e3.tar.gz |
handy.h Fix isOCTAL_A macro
This has the incorrect definition, allowing 8 and 9, for programs that
don't include perl.h. Likely no one actually uses this recently added
macro who doesn't also include perl.h.
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -658,7 +658,7 @@ EXTCONST U32 PL_charclass[]; * multi-char fold */ # define _HAS_NONLATIN1_FOLD_CLOSURE_ONLY_FOR_USE_BY_REGCOMP_DOT_C_AND_REGEXEC_DOT_C(c) ((! cBOOL(FITS_IN_8_BITS(c))) || (PL_charclass[(U8) NATIVE_TO_UNI(c)] & _CC_NONLATIN1_FOLD)) #else /* No perl.h. */ -# define isOCTAL_A(c) ((c) >= '0' && (c) <= '9') +# define isOCTAL_A(c) ((c) >= '0' && ((c) <= '7') # ifdef EBCDIC # define isALNUMC_A(c) (isASCII(c) && isALNUMC(c)) # define isALPHA_A(c) (isASCII(c) && isALPHA(c)) |