Change the type of a buffer to reflect its use and silence an alignment

warning.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36602 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2013-05-08 10:44:01 +00:00
parent 8078bd8bee
commit 8c44178520

View file

@ -3704,7 +3704,7 @@ isEqualFunc(const void *item1, const void *item2,
else
{
NSUInteger offset;
uint8_t *buffer;
unichar *buffer;
if (len < 0x0F)
{
@ -3721,7 +3721,7 @@ isEqualFunc(const void *item1, const void *item2,
offset = [dest length];
[dest setLength: offset + sizeof(unichar)*len];
buffer = [dest mutableBytes] + offset;
[string getCharacters: (unichar*)buffer];
[string getCharacters: buffer];
// Always store in big-endian, so if machine is little-endian,
// perform byte-swapping.