[Scummvm-cvs-logs] SF.net SVN: scummvm: [25688] scummvm/trunk/backends/saves/compressed/ compressed-saves.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sun Feb 18 16:41:00 CET 2007
Revision: 25688
http://scummvm.svn.sourceforge.net/scummvm/?rev=25688&view=rev
Author: fingolfin
Date: 2007-02-18 07:40:59 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
Const correctness
Modified Paths:
--------------
scummvm/trunk/backends/saves/compressed/compressed-saves.cpp
Modified: scummvm/trunk/backends/saves/compressed/compressed-saves.cpp
===================================================================
--- scummvm/trunk/backends/saves/compressed/compressed-saves.cpp 2007-02-18 15:12:23 UTC (rev 25687)
+++ scummvm/trunk/backends/saves/compressed/compressed-saves.cpp 2007-02-18 15:40:59 UTC (rev 25688)
@@ -244,7 +244,9 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list