Skip to content

Commit

Permalink
Removes compilation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
aous72 committed Sep 20, 2024
1 parent 27c9a2e commit 0c6dfd3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/apps/common/ojph_img_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ namespace ojph {
const char *fname;
mem_fixed_allocator *alloc_p;
float *temp_buf;
ui32 temp_buf_byte_size;
size_t temp_buf_byte_size;
ui32 bit_depth[3]; // this truncates data to bit_depth in the LSB
float scale;
bool little_endian;
Expand Down Expand Up @@ -621,7 +621,7 @@ namespace ojph {
ui32 width, height, num_components;
ui32 bit_depth, bytes_per_sample;
ui8* buffer;
ui32 buffer_size;
size_t buffer_size;
ui32 cur_line, samples_per_line, bytes_per_line;
conversion_fun converter;
const line_buf *lptr[3];
Expand Down
2 changes: 1 addition & 1 deletion src/core/codestream/ojph_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ namespace ojph {

for (ui32 c = 0; c < num_comps; ++c)
{
ui16 bd = siz.get_bit_depth(c);
ui32 bd = siz.get_bit_depth(c);
bool is = siz.is_signed(c);
if (bd != bit_depth || is != is_signed)
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/codestream/ojph_params_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ namespace ojph {
void set_Rsiz_flag(ui16 flag)
{ Rsiz |= flag; }
void reset_Rsiz_flag(ui16 flag)
{ Rsiz &= ~flag; }
{ Rsiz = (ui16)(Rsiz & ~flag); }

private:
ui16 Lsiz;
Expand Down

0 comments on commit 0c6dfd3

Please sign in to comment.