diff --git a/db/c.cc b/db/c.cc index 00141da18..3ed5d9c0e 100644 --- a/db/c.cc +++ b/db/c.cc @@ -1574,7 +1574,7 @@ void rocksdb_options_set_compression_per_level(rocksdb_options_t* opt, void rocksdb_options_set_compression_options(rocksdb_options_t* opt, int w_bits, int level, int strategy, - size_t max_dict_bytes) { + int max_dict_bytes) { opt->rep.compression_opts.window_bits = w_bits; opt->rep.compression_opts.level = level; opt->rep.compression_opts.strategy = strategy; diff --git a/include/rocksdb/c.h b/include/rocksdb/c.h index b61c892d9..01e2079bc 100644 --- a/include/rocksdb/c.h +++ b/include/rocksdb/c.h @@ -538,7 +538,7 @@ extern ROCKSDB_LIBRARY_API void rocksdb_options_set_max_open_files( extern ROCKSDB_LIBRARY_API void rocksdb_options_set_max_total_wal_size( rocksdb_options_t* opt, uint64_t n); extern ROCKSDB_LIBRARY_API void rocksdb_options_set_compression_options( - rocksdb_options_t*, int, int, int, size_t); + rocksdb_options_t*, int, int, int, int); extern ROCKSDB_LIBRARY_API void rocksdb_options_set_prefix_extractor( rocksdb_options_t*, rocksdb_slicetransform_t*); extern ROCKSDB_LIBRARY_API void rocksdb_options_set_num_levels( diff --git a/include/rocksdb/options.h b/include/rocksdb/options.h index 754653c37..ead7b1588 100644 --- a/include/rocksdb/options.h +++ b/include/rocksdb/options.h @@ -149,7 +149,7 @@ struct CompressionOptions { CompressionOptions() : window_bits(-14), level(-1), strategy(0), max_dict_bytes(0) {} - CompressionOptions(int wbits, int _lev, int _strategy, size_t _max_dict_bytes) + CompressionOptions(int wbits, int _lev, int _strategy, int _max_dict_bytes) : window_bits(wbits), level(_lev), strategy(_strategy),