aboutsummaryrefslogtreecommitdiff
path: root/backends/saves
diff options
context:
space:
mode:
authorMax Horn2007-02-18 15:40:59 +0000
committerMax Horn2007-02-18 15:40:59 +0000
commit35009ebff741086291b547dcffefa6925ecc131c (patch)
treef375881505b32f9c18cdb2ebf2ee518e391eab3d /backends/saves
parentdbd43fcb5af7340b7e0e974708e78099728778de (diff)
downloadscummvm-rg350-35009ebff741086291b547dcffefa6925ecc131c.tar.gz
scummvm-rg350-35009ebff741086291b547dcffefa6925ecc131c.tar.bz2
scummvm-rg350-35009ebff741086291b547dcffefa6925ecc131c.zip
Const correctness
svn-id: r25688
Diffstat (limited to 'backends/saves')
-rw-r--r--backends/saves/compressed/compressed-saves.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/saves/compressed/compressed-saves.cpp b/backends/saves/compressed/compressed-saves.cpp
index 431caf2a08..183e8dd355 100644
--- a/backends/saves/compressed/compressed-saves.cpp
+++ b/backends/saves/compressed/compressed-saves.cpp
@@ -244,7 +244,9 @@ public:
return 0;
// Hook in the new data ...
- _stream.next_in = (Bytef*)dataPtr;
+ // Note: We need to make a const_cast here, as zlib is not aware
+ // of the const keyword.
+ _stream.next_in = const_cast<byte *>((const byte *)dataPtr);
_stream.avail_in = dataSize;
// ... and flush it to disk