Skip to content

Commit

Permalink
Fixed compile error for loading Rgb?<unsigned short>
Browse files Browse the repository at this point in the history
  • Loading branch information
edrosten committed Nov 2, 2007
1 parent 43aeedd commit 8da39b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cvd/internal/io/png.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ template<> struct readPNG_rgb<Rgb<byte>, byte>

template<> struct readPNG_rgb<Rgb<unsigned short>, unsigned short>
{
static void read(SubImage<Rgb<byte> >& im, png_in& png)
static void read(SubImage<Rgb<unsigned short> >& im, png_in& png)
{
std::vector<unsigned short*> rows;
make_row_pointers(im, rows);
Expand Down Expand Up @@ -257,7 +257,7 @@ template<> struct readPNG_rgb<Rgba<byte>, byte>

template<> struct readPNG_rgb<Rgba<unsigned short>, unsigned short>
{
static void read(SubImage<Rgba<byte> >& im, png_in& png)
static void read(SubImage<Rgba<unsigned short> >& im, png_in& png)
{
std::vector<unsigned short*> rows;
make_row_pointers(im, rows);
Expand Down

0 comments on commit 8da39b4

Please sign in to comment.