Opened 14 years ago
Closed 14 years ago
#2784 closed Bugs (fixed)
Wrong initialization of data members in packed_pixel constructors
Reported by: | 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.
Note:
See TracTickets
for help on using tickets.
Fixed in the trunk (Revision #51352)