comparison src/dmimage.c @ 2572:92b93a12c014

Make some casts explicit instead of implicit, fixes some -pedantic warnings.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 10 Mar 2022 22:36:48 +0200
parents 0e355702435d
children
comparison
equal deleted inserted replaced
2571:bb44c48cffac 2572:92b93a12c014
104 104
105 if (data == NULL) 105 if (data == NULL)
106 { 106 {
107 dmErrorDBGMsg( 107 dmErrorDBGMsg(
108 "Error decoding image resource %p '%s' [%d, %d, %d]: %s\n", 108 "Error decoding image resource %p '%s' [%d, %d, %d]: %s\n",
109 file, file->filename, width, height, comp, stbi_failure_reason()); 109 (void *) file, file->filename, width, height, comp, stbi_failure_reason());
110 return NULL; 110 return NULL;
111 } 111 }
112 112
113 113
114 switch (comp) 114 switch (comp)
143 143
144 if (result == NULL) 144 if (result == NULL)
145 { 145 {
146 dmErrorDBGMsg( 146 dmErrorDBGMsg(
147 "Format conversion failed for image resource %p '%s' [%d, %d, %d].\n", 147 "Format conversion failed for image resource %p '%s' [%d, %d, %d].\n",
148 file, file->filename, width, height, comp); 148 (void *) file, file->filename, width, height, comp);
149 } 149 }
150 150
151 return result; 151 return result;
152 } 152 }
153 153