Fixes one last int->uint
authorOmari Stephens <xsdg@xsdg.org>
Sun, 31 Jul 2022 16:54:08 +0000 (16:54 +0000)
committerColin Clark <colin.clark@cclark.uk>
Mon, 1 Aug 2022 08:07:19 +0000 (09:07 +0100)
src/image_load_dds.c

index 11ebae6..6342143 100644 (file)
@@ -455,7 +455,7 @@ guchar *ddsReadR5G6B5(uint width, uint height, const unsigned char *buffer) {
        return (guchar *) pixels;
 }
 
-guchar *ddsReadR8G8B8(int width, int height, const unsigned char *buffer) {
+guchar *ddsReadR8G8B8(uint width, uint height, const unsigned char *buffer) {
        uint *pixels = g_try_malloc(4 * width*height);
        if (pixels == NULL) return NULL;
        uint index = 128;