1. basicer
  2. love-less-deps

Commits

basicer  committed 644bfbb

Fix warning / error on older versions of GCC.

  • Participants
  • Parent commits e8024b7
  • Branches default

Comments (0)

Files changed (1)

File src/modules/image/libpng/ImageData.cpp

View file
  • Ignore whitespace
       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)