Opened 14 years ago

Closed 14 years ago

#2784 closed Bugs (fixed)

Wrong initialization of data members in packed_pixel constructors

Reported by: Tim Bruylants <tim.bruylants@…> Owned by: Hailin Jin
Milestone: Boost 1.39.0 Component: gil USE GITHUB
Version: Boost 1.38.0 Severity: Problem
Keywords: GIL packed_pixel Cc:

Description

Just stumbled upon it by accident.

The constructor "packed_pixel(int chan0, int chan1, int chan2, int chan3)" assigns "at_c<2>(*this)=chan3;" (overwriting the previous value of at_c<2>). This should be "at_c<3>(*this)=chan3;"

Similar problem exists in the constructor "packed_pixel(int chan0, int chan1, int chan2, int chan3, int chan4)" where "chan3" and "chan4" are assigned incorrectly.

I have not included a patch, since fixing the problem is straight forward.

Change History (1)

comment:1 by Hailin Jin, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in the trunk (Revision #51352)

Note: See TracTickets for help on using tickets.