fix wcsto[iu]max with high characters
authorRich Felker <dalias@aerifal.cx>
Thu, 14 Jul 2011 05:12:05 +0000 (01:12 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 14 Jul 2011 05:12:05 +0000 (01:12 -0400)
commitd3fd192523db544e6005051f224a2d7bafabedd9
treeca5f8c14f29b229658a6d217cc667edd61655505
parentecc9c5fcfa4831b290cc1a63c0346cbb0c1fcf42
fix wcsto[iu]max with high characters

stopping without letting the parser see a stop character prevented
getting a result. so treat all high chars as the null character and
pass them into the parser.

also eliminated ugly tmp var using compound literals.
src/stdlib/wcstoimax.c
src/stdlib/wcstoumax.c