aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/glulxe
diff options
context:
space:
mode:
authorCameron Cawley2019-04-28 14:34:44 +0100
committerPaul Gilbert2019-04-29 16:25:54 +1000
commit17f0937f000a162e43b99f141d7040660a8451c8 (patch)
treebf1034434a062d5fc2da615ca45c928af6ee6c0f /engines/glk/glulxe
parentc05179ee99d099088cb55e93ecdf0bff5ed2ed14 (diff)
downloadscummvm-rg350-17f0937f000a162e43b99f141d7040660a8451c8.tar.gz
scummvm-rg350-17f0937f000a162e43b99f141d7040660a8451c8.tar.bz2
scummvm-rg350-17f0937f000a162e43b99f141d7040660a8451c8.zip
GLK: Fix warnings
Diffstat (limited to 'engines/glk/glulxe')
-rw-r--r--engines/glk/glulxe/serial.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/glk/glulxe/serial.cpp b/engines/glk/glulxe/serial.cpp
index 01848fc8cd..d138027bdb 100644
--- a/engines/glk/glulxe/serial.cpp
+++ b/engines/glk/glulxe/serial.cpp
@@ -503,7 +503,7 @@ int Glulxe::write_buffer(dest_t *dest, const byte *ptr, uint len) {
}
memcpy(dest->ptr + dest->pos, ptr, len);
} else {
- glk_put_buffer_stream(dest->str, (char *)ptr, len);
+ glk_put_buffer_stream(dest->str, (const char *)ptr, len);
}
dest->pos += len;
@@ -740,8 +740,8 @@ uint Glulxe::write_heapstate_sub(uint sumlen, uint *sumarray, dest_t *dest, int
}
int Glulxe::sort_heap_summary(const void *p1, const void *p2) {
- uint v1 = *(uint *)p1;
- uint v2 = *(uint *)p2;
+ uint v1 = *(const uint *)p1;
+ uint v2 = *(const uint *)p2;
if (v1 < v2)
return -1;