Skip to content

Commit

Permalink
Fix sign mismatch warnings in GCC.
Browse files Browse the repository at this point in the history
This was contributed in google#492

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=193080913
  • Loading branch information
MarcoFalke authored and pwnall committed Apr 17, 2018
1 parent 8046a51 commit 14cce84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/memtable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void MemTable::Add(SequenceNumber s, ValueType type,
p += 8;
p = EncodeVarint32(p, val_size);
memcpy(p, value.data(), val_size);
assert((p + val_size) - buf == encoded_len);
assert(p + val_size == buf + encoded_len);
table_.Insert(buf);
}

Expand Down
2 changes: 1 addition & 1 deletion db/version_set.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

namespace leveldb {

static int TargetFileSize(const Options* options) {
static size_t TargetFileSize(const Options* options) {
return options->max_file_size;
}

Expand Down

0 comments on commit 14cce84

Please sign in to comment.