Skip to content

Commit a81e55f

Browse files
committed
Fixes warnings.
1 parent 5551112 commit a81e55f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/core/codestream/ojph_codeblock.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ namespace ojph {
5353
{
5454

5555
//////////////////////////////////////////////////////////////////////////
56-
void codeblock::pre_alloc(codestream *codestream, ui32 comp_num,
57-
const size& nominal, ui32 precision)
56+
void codeblock::pre_alloc(codestream *codestream, const size& nominal,
57+
ui32 precision)
5858
{
5959
mem_fixed_allocator* allocator = codestream->get_allocator();
6060

src/core/codestream/ojph_codeblock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ namespace ojph {
7171
};
7272

7373
public:
74-
static void pre_alloc(codestream *codestream, ui32 comp_num,
75-
const size& nominal, ui32 precision);
74+
static void pre_alloc(codestream *codestream, const size& nominal,
75+
ui32 precision);
7676
void finalize_alloc(codestream *codestream, subband* parent,
7777
const size& nominal, const size& cb_size,
7878
coded_cb_header* coded_cb,

src/core/codestream/ojph_params.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ namespace ojph {
13851385
int irrev = Sqcd & 0x1F;
13861386

13871387
//marker size excluding header
1388-
Lqcd = 4 + (num_comps < 257 ? 0 : 1);
1388+
Lqcd = (ui16)(4 + (num_comps < 257 ? 0 : 1));
13891389
if (irrev == 0)
13901390
Lqcd = (ui16)(Lqcd + num_subbands);
13911391
else if (irrev == 2)

src/core/codestream/ojph_subband.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ namespace ojph {
9494
ui32 precision = qp->propose_precision(cdp);
9595

9696
for (ui32 i = 0; i < num_blocks.w; ++i)
97-
codeblock::pre_alloc(codestream, comp_num, nominal, precision);
97+
codeblock::pre_alloc(codestream, nominal, precision);
9898

9999
//allocate lines
100100
allocator->pre_alloc_obj<line_buf>(1);

0 commit comments

Comments
 (0)