File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,9 @@ XFileParser::XFileParser( const std::vector<char>& pBuffer)
136
136
ThrowException ( boost::str ( boost::format ( " Unknown float size %1% specified in xfile header." )
137
137
% mBinaryFloatSize ));
138
138
139
+ // The x format specifies size in bits, but we work in bytes
140
+ mBinaryFloatSize /= 8 ;
141
+
139
142
P += 16 ;
140
143
141
144
// If this is a compressed X file, apply the inflate algorithm to it
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ class XFileParser
144
144
protected:
145
145
unsigned int mMajorVersion , mMinorVersion ; // /< version numbers
146
146
bool mIsBinaryFormat ; // /< true if the file is in binary, false if it's in text form
147
- unsigned int mBinaryFloatSize ; // /< float size, either 32 or 64 bits
147
+ unsigned int mBinaryFloatSize ; // /< float size in bytes , either 4 or 8
148
148
// counter for number arrays in binary format
149
149
unsigned int mBinaryNumCount ;
150
150
You can’t perform that action at this time.
0 commit comments