mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 13:42:02 +00:00
WINTERMUTE: Silence/fix some warnigns when compiling Symbian port.
See bug #6625 "WINTERMUTE: Symbian Compilation Warnings".
This commit is contained in:
parent
257f9fd2ae
commit
b6b6d39992
@ -488,7 +488,8 @@ double ScScript::getFloat() {
|
||||
SWAP(buffer[3], buffer[4]);
|
||||
#endif
|
||||
|
||||
double ret = *(double *)(buffer);
|
||||
double ret;
|
||||
memcpy(&ret, buffer, sizeof(double));
|
||||
_iP += 8; // Hardcode the double-size used originally.
|
||||
return ret;
|
||||
}
|
||||
|
@ -443,7 +443,7 @@ bool SXFile::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack,
|
||||
return STATUS_OK;
|
||||
}
|
||||
float val;
|
||||
(*(uint32 *)&val) = _readFile->readUint32LE();
|
||||
WRITE_UINT32(&val, _readFile->readUint32LE());
|
||||
if (!_readFile->err()) {
|
||||
stack->pushFloat(val);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user