mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
fix alignment error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34108 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
de6e9cf7fc
commit
70f63cc91a
2 changed files with 7 additions and 2 deletions
|
@ -771,7 +771,7 @@ if (aValue >= -1 && aValue <= 12)\
|
|||
- (void) encodeWithCoder: (NSCoder *) coder
|
||||
{
|
||||
const char *type = [self objCType];
|
||||
char buffer[16];
|
||||
char buffer[16] __attribute__ ((aligned (16)));
|
||||
|
||||
[coder encodeValueOfObjCType: @encode (char) at: type];
|
||||
/* The most we currently store in an NSNumber is 8 bytes (double or long
|
||||
|
@ -792,7 +792,7 @@ if (aValue >= -1 && aValue <= 12)\
|
|||
- (id) initWithCoder: (NSCoder *) coder
|
||||
{
|
||||
char type[2] = { 0 };
|
||||
char buffer[16];
|
||||
char buffer[16] __attribute__ ((aligned (16)));
|
||||
|
||||
[coder decodeValueOfObjCType: @encode (char) at: type];
|
||||
[coder decodeValueOfObjCType: type at: buffer];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue