@@ -59,7 +59,7 @@ short ReadShort(std::ifstream& ifs)
5959short val;
6060ifs.read ((char *)&val,sizeof (short ));
6161#if ENDIAN_BIG
62- ReverseShort (val);
62+ val = ReverseShort (val);
6363#endif
6464return val;
6565}
@@ -69,7 +69,7 @@ unsigned short ReadUShort(std::ifstream& ifs)
6969unsigned short val;
7070ifs.read ((char *)&val,sizeof (unsigned short ));
7171#if ENDIAN_BIG
72- ReverseUShort (val);
72+ val = ReverseUShort (val);
7373#endif
7474return val;
7575}
@@ -79,7 +79,7 @@ int ReadInt(std::ifstream& ifs)
7979int val;
8080ifs.read ((char *)&val,sizeof (int ));
8181#if ENDIAN_BIG
82- ReverseInt (val);
82+ val = ReverseInt (val);
8383#endif
8484return val;
8585}
@@ -89,7 +89,7 @@ unsigned int ReadUInt(std::ifstream& ifs)
8989unsigned int val;
9090ifs.read ((char *)&val,sizeof (unsigned int ));
9191#if ENDIAN_BIG
92- ReverseUInt (val);
92+ val = ReverseUInt (val);
9393#endif
9494return val;
9595}
@@ -110,7 +110,7 @@ void WriteShort(std::ofstream& ofs, short input)
110110{
111111short val = input;
112112#if ENDIAN_BIG
113- ReverseShort (val);
113+ val = ReverseShort (val);
114114#endif
115115ofs.write ((char *)&val,sizeof (short ));
116116}
@@ -119,7 +119,7 @@ void WriteUShort(std::ofstream& ofs, unsigned short input)
119119{
120120unsigned short val = input;
121121#if ENDIAN_BIG
122- ReverseUShort (val);
122+ val = ReverseUShort (val);
123123#endif
124124ofs.write ((char *)&val,sizeof (unsigned short ));
125125}
@@ -128,7 +128,7 @@ void WriteInt(std::ofstream& ofs, int input)
128128{
129129int val = input;
130130#if ENDIAN_BIG
131- ReverseInt (val);
131+ val = ReverseInt (val);
132132#endif
133133ofs.write ((char *)&val,sizeof (int ));
134134}
@@ -137,7 +137,7 @@ void WriteUInt(std::ofstream& ofs, unsigned int input)
137137{
138138unsigned int val = input;
139139#if ENDIAN_BIG
140- ReverseUInt (val);
140+ val = ReverseUInt (val);
141141#endif
142142ofs.write ((char *)&val,sizeof (unsigned int ));
143143}