Commits

basicer committed 644bfbb

Fix warning / error on older versions of GCC.

  • Participants
  • Parent commits e8024b7

Comments (0)

Files changed (1)

src/modules/image/libpng/ImageData.cpp

       return;   // add custom error handling here
 
    memcpy(outBytes, png_ptr->io_ptr, byteCountToRead);
-   png_ptr->io_ptr += byteCountToRead;
+   png_ptr->io_ptr = (void *)((char *) png_ptr->io_ptr + byteCountToRead);
 } 
 
 void ImageData::load(Data *data)