mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
8078bd8bee
commit
8c44178520
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue