From 7dc8bfced337b8bcc3aed4d3f411e62d19825933 Mon Sep 17 00:00:00 2001 From: _ <_> Date: Thu, 19 Apr 2018 05:49:16 -0700 Subject: [PATCH] Addressed compiler warning in texture demo / pointer types --- demo/extracttexture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/extracttexture.c b/demo/extracttexture.c index 268f58f..f686ff7 100644 --- a/demo/extracttexture.c +++ b/demo/extracttexture.c @@ -23,7 +23,7 @@ void extracttextures(const char *filedata, DEVIL1TEX.gettextures(t, i, filedata, filesize); for (j = 0; j < d -> texNumber; j++) { sprintf(fmt, "%s_%d.dds", filename, id); - write(fmt, t[j].data, d -> textureSize); + write(fmt, (char*)t[j].data, d -> textureSize); id++; } free(t);