projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54301aa
)
Fixes one last int->uint
author
Omari Stephens
<xsdg@xsdg.org>
Sun, 31 Jul 2022 16:54:08 +0000
(16:54 +0000)
committer
Colin Clark
<colin.clark@cclark.uk>
Mon, 1 Aug 2022 08:07:19 +0000
(09:07 +0100)
src/image_load_dds.c
patch
|
blob
|
history
diff --git
a/src/image_load_dds.c
b/src/image_load_dds.c
index
11ebae6
..
6342143
100644
(file)
--- a/
src/image_load_dds.c
+++ b/
src/image_load_dds.c
@@
-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, u
int height, const unsigned char *buffer) {
uint *pixels = g_try_malloc(4 * width*height);
if (pixels == NULL) return NULL;
uint index = 128;