mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Add encodings
This commit is contained in:
parent
0dd8791f2e
commit
9f84664b05
1 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
/* Implementation of class NSUnit
|
||||
Copyright (C) 2019 Free Software Foundation, Inc.
|
||||
|
||||
|
@ -83,10 +82,13 @@
|
|||
{
|
||||
if([coder allowsKeyedCoding])
|
||||
{
|
||||
|
||||
[coder encodeDouble: _coefficient forKey: @"coefficient"];
|
||||
[coder encodeDouble: _constant forKey: @"constant"];
|
||||
}
|
||||
else
|
||||
{
|
||||
[coder encodeValueOfObjCType: @encode(double) at: &_coefficient];
|
||||
[coder encodeValueOfObjCType: @encode(double) at: &_constant];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue