aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/psp/memory.h
diff options
context:
space:
mode:
authorColin Snover2017-10-28 15:26:54 -0500
committerEugene Sandulenko2018-08-18 13:49:15 +0200
commite49e34eeded57392bf6f5f2996e23ec61cf28430 (patch)
tree0652faf322562ed414db47ba776ebadf6c8c22a4 /backends/platform/psp/memory.h
parent334e0e74637482e286f62b3df9908310df86e1e2 (diff)
downloadscummvm-rg350-e49e34eeded57392bf6f5f2996e23ec61cf28430.tar.gz
scummvm-rg350-e49e34eeded57392bf6f5f2996e23ec61cf28430.tar.bz2
scummvm-rg350-e49e34eeded57392bf6f5f2996e23ec61cf28430.zip
PSP: Fix wrong/dangerous C-style casts
Diffstat (limited to 'backends/platform/psp/memory.h')
-rw-r--r--backends/platform/psp/memory.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/psp/memory.h b/backends/platform/psp/memory.h
index f794eb0baf..edf19b116b 100644
--- a/backends/platform/psp/memory.h
+++ b/backends/platform/psp/memory.h
@@ -72,7 +72,7 @@ public:
// This is the interface to the outside world
static void *fastCopy(void *dstv, const void *srcv, int32 bytes) {
byte *dst = (byte *)dstv;
- byte *src = (byte *)srcv;
+ const byte *src = (const byte *)srcv;
if (bytes < MIN_AMOUNT_FOR_COMPLEX_COPY) {
copy8(dst, src, bytes);
@@ -114,9 +114,9 @@ private:
public:
static void fastSwap(byte *dst, const byte *src, uint32 bytes, PSPPixelFormat &format) {
if (bytes < MIN_AMOUNT_FOR_COMPLEX_COPY * 2) {
- swap16((uint16 *)dst, (uint16 *)src, bytes, format);
+ swap16((uint16 *)dst, (const uint16 *)src, bytes, format);
} else { // go to more powerful copy
- swap((uint16 *)dst, (uint16 *)src, bytes, format);
+ swap((uint16 *)dst, (const uint16 *)src, bytes, format);
}
}
};