diff options
author | Colin Snover | 2017-10-27 22:41:22 -0500 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-18 13:49:15 +0200 |
commit | 042650157a7d3fb02e0e436cd43665b5b1e67a75 (patch) | |
tree | 066c43c5d387a56a0077c02e3a919a907c0a616b /backends/fs | |
parent | 452e979101da7586042bbe07691b99773e398f1e (diff) | |
download | scummvm-rg350-042650157a7d3fb02e0e436cd43665b5b1e67a75.tar.gz scummvm-rg350-042650157a7d3fb02e0e436cd43665b5b1e67a75.tar.bz2 scummvm-rg350-042650157a7d3fb02e0e436cd43665b5b1e67a75.zip |
PSP: Fix strict aliasing violation
Casting through pointer to void just to truncate a value to uint32
is incorrect.
Diffstat (limited to 'backends/fs')
-rw-r--r-- | backends/fs/psp/psp-stream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/fs/psp/psp-stream.cpp b/backends/fs/psp/psp-stream.cpp index 51720b54bf..8cefd414e4 100644 --- a/backends/fs/psp/psp-stream.cpp +++ b/backends/fs/psp/psp-stream.cpp @@ -99,7 +99,7 @@ SceUID PspIoStream::open() { // Get the file size. This way is much faster than going to the end of the file and back SceIoStat stat; sceIoGetstat(_path.c_str(), &stat); - _fileSize = *((uint32 *)(void *)&stat.st_size); // 4GB file (32 bits) is big enough for us + _fileSize = stat.st_size; // 4GB file (32 bits) is big enough for us PSP_DEBUG_PRINT("%s filesize[%d]\n", _path.c_str(), _fileSize); |