fix regex on arm
authorRich Felker <dalias@aerifal.cx>
Fri, 25 May 2012 14:45:05 +0000 (10:45 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 25 May 2012 14:45:05 +0000 (10:45 -0400)
commit8b4c232efe182f4a9c8c52c5638af8fec92987bf
treee30e472ffa08b164529dc86c294deefdfb0db377
parent7efd14ecc92de7ccdf0209168a4ae6b73cd9e07a
fix regex on arm

TRE has a broken assumption that wchar_t is signed, which is a sane
expectation, but not required by the standard, and false on ARM's ABI.

i leave tre_char_t as wchar_t for now, since a pointer to it is
directly passed to functions that need pointer to wchar_t. it does not
seem to break anything. and since the maximum unicode scalar value is
0x10ffff, just use that explicitly rather than using the max value of
any particular C type.
src/regex/tre.h