Skip to content

Commit

Permalink
build: resolve i586 compile error
Browse files Browse the repository at this point in the history
edb2mt.cpp: In function 'read_col':
edb2mt.cpp:211:65: error: cannot convert 'size_t*' {aka 'unsigned
int*'} to 'size64_t*' {aka 'long long unsigned int*'}
  • Loading branch information
jengelh committed Oct 30, 2023
1 parent 38ec41b commit b13e1bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/edb2mt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,14 @@ static void read_col(libesedb_record_t *row, unsigned int x,
throw az_error("EE-1014", err);
} else if (is_lval) {
ese_lval_ptr lv;
uint64_t dsize64 = 0;
if (libesedb_record_get_long_value(row, x, &unique_tie(lv), &~unique_tie(err)) < 1)
throw az_error("EE-1018", err);
if (libesedb_long_value_get_data_size(lv.get(), &dsize, &~unique_tie(err)) < 1)
if (libesedb_long_value_get_data_size(lv.get(), &dsize64, &~unique_tie(err)) < 1)
throw az_error("EE-1019", err);
if (dsize == 0)
if (dsize64 == 0)
return;
dsize = std::max(dsize64, static_cast<uint64_t>(UINT32_MAX));
udata.resize(dsize);
if (libesedb_long_value_get_data(lv.get(),
TOU8(udata.data()), dsize, &~unique_tie(err)) < 1)
Expand Down

0 comments on commit b13e1bf

Please sign in to comment.