Fix build problem on i386

This commit is contained in:
Keith Winstein
2012-02-26 13:51:11 -05:00
parent b2abc0d9b6
commit 9e13176d96
3 changed files with 11 additions and 3 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ using namespace std;
string Compressor::compress_str( const string input )
{
size_t len = BUFFER_SIZE;
long unsigned int len = BUFFER_SIZE;
assert( Z_OK == compress( buffer, &len,
reinterpret_cast<const unsigned char *>( input.data() ),
input.size() ) );
@@ -17,7 +17,7 @@ string Compressor::compress_str( const string input )
string Compressor::uncompress_str( const string input )
{
size_t len = BUFFER_SIZE;
long unsigned int len = BUFFER_SIZE;
assert( Z_OK == uncompress( buffer, &len,
reinterpret_cast<const unsigned char *>( input.data() ),
input.size() ) );