Const correctness
svn-id: r25688
This commit is contained in:
parent
dbd43fcb5a
commit
35009ebff7
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue