Const correctness

svn-id: r25688
This commit is contained in:
Max Horn 2007-02-18 15:40:59 +00:00
parent dbd43fcb5a
commit 35009ebff7

View file

@ -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