Fix public issue #44: Make the definition and declaration of CompressFragment

identical, even regarding cv-qualifiers.

This is required to work around a bug in the Solaris Studio C++ compiler
(it does not properly disregard cv-qualifiers when doing name mangling).

R=sanjay


git-svn-id: https://snappy.googlecode.com/svn/trunk@44 03e5f5b5-db94-4691-08a0-1a8bf15f6143
This commit is contained in:
snappy.mirrorbot@gmail.com
2011-06-28 11:40:25 +00:00
parent 13c4a449a8
commit 57e7cd7255

View File

@@ -294,8 +294,8 @@ static inline uint32 GetUint32AtOffset(uint64 v, int offset) {
// Returns an "end" pointer into "op" buffer.
// "end - op" is the compressed size of "input".
namespace internal {
char* CompressFragment(const char* const input,
const size_t input_size,
char* CompressFragment(const char* input,
size_t input_size,
char* op,
uint16* table,
const int table_size) {