From d94ace394f52e86fb8171736606a35cf0cba146c Mon Sep 17 00:00:00 2001 From: Yeabsira Mekonnen Date: Wed, 4 Dec 2024 16:31:11 -0800 Subject: [PATCH] Fixing failed test: convention is to have bools as uint8_t --- db/c.cc | 2 +- include/leveldb/c.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/c.cc b/db/c.cc index 3c805f596..40dbe6ce3 100644 --- a/db/c.cc +++ b/db/c.cc @@ -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; } diff --git a/include/leveldb/c.h b/include/leveldb/c.h index a28bf490e..14a26589f 100644 --- a/include/leveldb/c.h +++ b/include/leveldb/c.h @@ -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);