1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-05-08 04:59:37 +02:00

BeesBlockData: fix data type issues

Not sure if these cause any problems, but they are theoretically
incorrect data types.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
Zygo Blaxell
2018-02-10 00:23:05 -05:00
Ursprung 5bdad7fc93
Commit 082f04818f
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
+2 -2
Datei anzeigen
@@ -945,9 +945,9 @@ BeesBlockData::data() const
BEESTOOLONG("Reading BeesBlockData " << *this);
Timer read_timer;
Blob rv(m_length);
Blob rv(size());
pread_or_die(m_fd, rv, m_offset);
THROW_CHECK2(runtime_error, rv.size(), m_length, ranged_cast<off_t>(rv.size()) == m_length);
THROW_CHECK2(runtime_error, rv.size(), size(), ranged_cast<off_t>(rv.size()) == size());
m_data = rv;
BEESCOUNT(block_read);
BEESCOUNTADD(block_bytes, rv.size());
+1 -1
Datei anzeigen
@@ -596,7 +596,7 @@ private:
ostream & operator<<(ostream &os, const BeesHash &bh);
class BeesBlockData {
using Blob = vector<char>;
using Blob = vector<uint8_t>;
mutable Fd m_fd;
off_t m_offset;