[ scummvm-Bugs-3346394 ] tsage savecode is non portable

SourceForge.net noreply at sourceforge.net
Thu Jun 30 12:37:22 CEST 2011


Bugs item #3346394, was opened at 2011-06-30 12:37
Message generated for change (Tracker Item Submitted) made by fingolfin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=3346394&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Max Horn (fingolfin)
Assigned to: Nobody/Anonymous (nobody)
Summary: tsage savecode  is non portable

Initial Comment:
void Scene6100::Object::synchronize(Serializer &s) does this:

	s.syncBytes((byte *)&_floats._float1, sizeof(double));
	s.syncBytes((byte *)&_floats._float2, sizeof(double));
	s.syncBytes((byte *)&_floats._float3, sizeof(double));
	s.syncBytes((byte *)&_floats._float4, sizeof(double));

which is clearly not portable. (endianess and sizeof may differ)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=3346394&group_id=37116




More information about the Scummvm-tracker mailing list