mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 10:11:03 +00:00
([BinaryCStream -decodeValueOfCType:at:withName:]): Don't make float
and double `volatile'. ([BinaryCStream -encodeValueOfCType:at:withName:name]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1914 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
297904426b
commit
07a1e26de2
1 changed files with 6 additions and 4 deletions
|
@ -222,7 +222,7 @@ static int debug_binary_coder = 0;
|
|||
|
||||
case _C_FLT:
|
||||
{
|
||||
volatile double value;
|
||||
double value;
|
||||
int exponent, mantissa;
|
||||
short exponent_encoded;
|
||||
|
||||
|
@ -243,7 +243,7 @@ static int debug_binary_coder = 0;
|
|||
|
||||
case _C_DBL:
|
||||
{
|
||||
volatile double value;
|
||||
double value;
|
||||
int exponent, mantissa1, mantissa2;
|
||||
short exponent_encoded;
|
||||
|
||||
|
@ -385,7 +385,8 @@ static int debug_binary_coder = 0;
|
|||
{
|
||||
short exponent;
|
||||
int mantissa;
|
||||
volatile double value;
|
||||
double value;
|
||||
|
||||
/* Decode the exponent and mantissa. */
|
||||
READ_SIGNED_TYPE (&exponent, short, ntohs);
|
||||
READ_SIGNED_TYPE (&mantissa, int, ntohl);
|
||||
|
@ -401,7 +402,8 @@ static int debug_binary_coder = 0;
|
|||
{
|
||||
short exponent;
|
||||
int mantissa1, mantissa2;
|
||||
volatile double value;
|
||||
double value;
|
||||
|
||||
/* Decode the exponent and the two pieces of the mantissa. */
|
||||
READ_SIGNED_TYPE (&exponent, short, ntohs);
|
||||
READ_SIGNED_TYPE (&mantissa1, int, ntohl);
|
||||
|
|
Loading…
Reference in a new issue