mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:10:38 +00:00
Explicitly encode/decode enumerated types as 'int' which is what all
the existing archives use (even if it is incorrect as in many cases the types are actually 'unsigned int') git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31785 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
74c604cbb0
commit
b854f2da8a
12 changed files with 59 additions and 36 deletions
|
@ -1628,7 +1628,7 @@ static int winding_curve(double_point from, double_point to, double_point c1,
|
|||
for (i = 0; i < count; i++)
|
||||
{
|
||||
type = [self elementAtIndex: i associatedPoints: pts];
|
||||
[aCoder encodeValueOfObjCType: @encode(NSBezierPathElement) at: &type];
|
||||
[aCoder encodeValueOfObjCType: @encode(int) at: &type];
|
||||
switch(type)
|
||||
{
|
||||
case NSMoveToBezierPathElement:
|
||||
|
@ -1674,7 +1674,7 @@ static int winding_curve(double_point from, double_point to, double_point c1,
|
|||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
[aCoder decodeValueOfObjCType: @encode(NSBezierPathElement) at: &type];
|
||||
[aCoder decodeValueOfObjCType: @encode(int) at: &type];
|
||||
switch(type)
|
||||
{
|
||||
case NSMoveToBezierPathElement:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue