Cleanup: pass arrays const where possible

This commit is contained in:
2020-08-07 22:56:13 +10:00
parent b134434224
commit 48e089375e
54 changed files with 149 additions and 88 deletions

View File

@@ -269,7 +269,7 @@ static bool icon_merge(const char *file_src,
/* init once */
*r_canvas_w = head.canvas_w;
*r_canvas_h = head.canvas_h;
*r_pixels_canvas = calloc(1, (head.canvas_w * head.canvas_h) * sizeof(unsigned char[4]));
*r_pixels_canvas = calloc(1, (head.canvas_w * head.canvas_h) * sizeof(const unsigned char[4]));
}
canvas_w = *r_canvas_w;