From: Ryan Norton Date: Mon, 15 Dec 2003 00:28:20 +0000 (+0000) Subject: Quick fix..... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2ffcce508e88937b0bc93ac2ec6071e3eee8b03d?hp=04fdd8736a403bb3c6b2bd1430e48178dd8b7e45 Quick fix..... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/regex/regcustom.h b/src/regex/regcustom.h index d13dcef807..ddc99fe722 100644 --- a/src/regex/regcustom.h +++ b/src/regex/regcustom.h @@ -81,15 +81,17 @@ typedef long celt; /* type to hold chr, MCCE number, or /* RN - the "not use sizeof() thing is really annoying!" */ #if wxUSE_UNICODE # define CHRBITS 32 +# define CHR_MAX 0xfffffffe /* CHR_MAX-CHR_MIN+1 should fit in uchr */ #else # define CHRBITS 8 /* bits in a chr; must not use sizeof */ +# define CHR_MAX 0xfe #endif #define CHR_MIN 0x00000000 /* smallest and largest chr; the value */ /* PUTTING PARENTHASES AROUND THIS, I.E. (1 << CHRBITS) WILL CAUSE ALL CHARACTERS TO BE MATCHED!!! */ -#define CHR_MAX 1 << CHRBITS /*0xfffffffe*/ /* CHR_MAX-CHR_MIN+1 should fit in uchr */ +/*#define CHR_MAX 1 << CHRBITS /*0xfffffffe*/ /* CHR_MAX-CHR_MIN+1 should fit in uchr */ /* functions operating on chr */