diff options
Diffstat (limited to 'source/blender/datatoc/datatoc_icon.c')
-rw-r--r-- | source/blender/datatoc/datatoc_icon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/datatoc/datatoc_icon.c b/source/blender/datatoc/datatoc_icon.c index 7df9269a4a8..92048f32a28 100644 --- a/source/blender/datatoc/datatoc_icon.c +++ b/source/blender/datatoc/datatoc_icon.c @@ -166,7 +166,8 @@ static bool write_png(const char *name, const unsigned int *pixels, /* set the individual row-pointers to point at the correct offsets */ for (i = 0; i < height; i++) { row_pointers[height - 1 - i] = (png_bytep) - (((unsigned char *)pixels) + (i * width) * bytesperpixel * sizeof(unsigned char)); + (((const unsigned char *)pixels) + + (i * width) * bytesperpixel * sizeof(unsigned char)); } /* write out the entire image data in one call */ |