(combine_strings): Add support for WCHAR_TYPE as short.

From-SVN: r10622
This commit is contained in:
Jim Wilson 1995-11-29 11:05:42 -08:00
parent bd95070abd
commit 41bbd14edc
1 changed files with 6 additions and 1 deletions

View File

@ -157,7 +157,12 @@ combine_strings (strings)
{
int i;
for (i = 0; i < len; i++)
((int *) q)[i] = TREE_STRING_POINTER (t)[i];
{
if (WCHAR_TYPE_SIZE == HOST_BITS_PER_SHORT)
((short *) q)[i] = TREE_STRING_POINTER (t)[i];
else
((int *) q)[i] = TREE_STRING_POINTER (t)[i];
}
q += len * wchar_bytes;
}
}