summaryrefslogtreecommitdiff
path: root/saveload.c
diff options
context:
space:
mode:
Diffstat (limited to 'saveload.c')
-rw-r--r--saveload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/saveload.c b/saveload.c
index 87d4878a4..e3efc54fd 100644
--- a/saveload.c
+++ b/saveload.c
@@ -422,7 +422,7 @@ static size_t SlCalcObjLength(void *object, const void *desc)
{
size_t length = 0;
uint cmd,conv;
- byte *d = (byte*)desc;
+ const byte *d = (const byte*)desc;
// Need to determine the length and write a length tag.
while (true) {
@@ -464,7 +464,7 @@ static size_t SlCalcObjLength(void *object, const void *desc)
void SlObject(void *object, const void *desc)
{
- byte *d = (byte*)desc;
+ const byte *d = (const byte*)desc;
void *ptr;
uint cmd,conv;