From 07a1e26de2815388c150d6824e43d3e9fb1ce45d Mon Sep 17 00:00:00 2001 From: mccallum Date: Thu, 31 Oct 1996 20:38:00 +0000 Subject: [PATCH] ([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 --- Source/BinaryCStream.m | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/BinaryCStream.m b/Source/BinaryCStream.m index 4a0e40b2e..0db07ec8b 100644 --- a/Source/BinaryCStream.m +++ b/Source/BinaryCStream.m @@ -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);