Comment updates, minor code cleanups and other janitorial jobs

darcs-hash:20071002100937-75c98-d4040e70a256e36a6334cca0a05d60500680132b.gz
This commit is contained in:
liljencrantz
2007-10-02 20:09:37 +10:00
parent dac2129048
commit d34d05ca8b
7 changed files with 54 additions and 61 deletions

View File

@@ -263,9 +263,9 @@ wchar_t *str2wcs_internal( const char *in, wchar_t *out )
{
res = mbrtowc( &out[out_pos], &in[in_pos], len-in_pos, &state );
if( ( out[out_pos] >= ENCODE_DIRECT_BASE) &&
( out[out_pos] < ENCODE_DIRECT_BASE+256) ||
out[out_pos] == INTERNAL_SEPARATOR )
if( ( ( out[out_pos] >= ENCODE_DIRECT_BASE) &&
( out[out_pos] < ENCODE_DIRECT_BASE+256)) ||
( out[out_pos] == INTERNAL_SEPARATOR ) )
{
out[out_pos] = ENCODE_DIRECT_BASE + (unsigned char)in[in_pos];
in_pos++;