Skip to content

Commit

Permalink
Fixing failed test: convention is to have bools as uint8_t
Browse files Browse the repository at this point in the history
  • Loading branch information
yabmek-msft committed Dec 5, 2024
1 parent f8f21d6 commit d94ace3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ void leveldb_options_set_max_file_size(leveldb_options_t* opt, size_t s) {
opt->rep.max_file_size = s;
}

void leveldb_options_set_disable_seek_autocompaction(leveldb_options_t* opt, bool v) {
void leveldb_options_set_disable_seek_autocompaction(leveldb_options_t* opt, uint8_t v) {
opt->rep.disable_seek_autocompaction = v;
}

Expand Down
2 changes: 1 addition & 1 deletion include/leveldb/c.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ LEVELDB_EXPORT void leveldb_options_set_block_restart_interval(
LEVELDB_EXPORT void leveldb_options_set_max_file_size(leveldb_options_t*,
size_t);
LEVELDB_EXPORT void leveldb_options_set_disable_seek_autocompaction(leveldb_options_t*,
bool);
uint8_t);

enum { leveldb_no_compression = 0, leveldb_snappy_compression = 1 };
LEVELDB_EXPORT void leveldb_options_set_compression(leveldb_options_t*, int);
Expand Down

0 comments on commit d94ace3

Please sign in to comment.