Skip to content

Commit

Permalink
a few cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
etseidl committed Jul 25, 2023
1 parent f4586d5 commit 4ac47b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/io/parquet/page_enc.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,6 @@ __global__ void __launch_bounds__(128, 8)
RleEncode(s, rle_numvals, def_lvl_bits, (rle_numvals == s->page.num_rows), t);
__syncthreads();
}

if (t < 32) {
uint8_t* const cur = s->cur;
uint8_t* const rle_out = s->rle_out;
Expand Down Expand Up @@ -1848,7 +1847,8 @@ __global__ void __launch_bounds__(128)
if (ck_g.is_compressed) {
auto const lvl_bytes = page_g.def_lvl_bytes + page_g.rep_lvl_bytes;
hdr_start = page_g.compressed_data;
compressed_page_size = (uint32_t)comp_results[blockIdx.x].bytes_written + lvl_bytes;
compressed_page_size =
static_cast<uint32_t>(comp_results[blockIdx.x].bytes_written) + lvl_bytes;
page_g.max_data_size = compressed_page_size;
} else {
hdr_start = page_g.page_data;
Expand Down

0 comments on commit 4ac47b6

Please sign in to comment.