View Single Post
Old 04 August 2017, 21:27   #34
alkis
Registered User
 
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
Hmm, try changing line 326 from double val; to float val;

Ok, I realised I reformated the code and I might have changed the lines...here is the code

Code:
float readFloat(const LWLoadState       *lState)
{
	if (lState->ioMode == LWIO_OBJECT) {
		float            val;
		(*lState->read) (lState->readData, (char *) &val, 4);
		BSWAP_L(val);
		return val;
	} else {
		char             buf[50];
		float           val;
		(*lState->read) (lState->readData, buf, 50);
		sscanf (buf, "%f", &val);
		return (float) val;
	}
}
change is marked red.
alkis is offline  
 
Page generated in 0.08984 seconds with 11 queries