Skip to content

Commit

Permalink
cast
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed May 16, 2024
1 parent 59a144e commit 4166f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libImaging/Dib.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ ImagingNewDIB(const char *mode, int xsize, int ysize) {
}

dib->bitmap =
CreateDIBSection(dib->dc, dib->info, DIB_RGB_COLORS, &dib->bits, NULL, 0);
CreateDIBSection(dib->dc, dib->info, DIB_RGB_COLORS, (void **)&dib->bits, NULL, 0);
if (!dib->bitmap) {
free(dib->info);
free(dib);
Expand Down

0 comments on commit 4166f8a

Please sign in to comment.