[ scummvm-BASS Bugs-1002534 ] sizeof(dataFileHeader) returns 24 on some targets
SourceForge.net
noreply at sourceforge.net
Tue Aug 3 13:05:26 CEST 2004
BASS Bugs item #1002534, was opened at 2004-08-03 11:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=574223&aid=1002534&group_id=37116
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Lars Persson (anotherguest)
Assigned to: Nobody/Anonymous (nobody)
Summary: sizeof(dataFileHeader) returns 24 on some targets
Initial Comment:
In Control.cpp, Disk.cpp,Intro.Cpp,Logic.cpp, Mouse.cpp,
Screen.cpp,Sound.cpp & Text.cpp sizeof
(dataFileHeader) is often used to calculate the offset of
data. The data of the struct is 22 bytes, and
corresponds to the actual datasize within the datafiles
of Sky. But on some targets (in my case Symbian Gcc
ARM compiler), the struct size is rounded up to the
closest 32 bit long word and this size is 24 bytes, and
stops Sky from working.
Suggested fix: Change the sizeof(dataFileHeader) to the
constant of 22, as this is the size of the data in the
datafiles.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=574223&aid=1002534&group_id=37116
More information about the Scummvm-tracker
mailing list