Build fix

This commit is contained in:
@clasher113 2024-01-22 11:05:49 +02:00
parent 6fba4a7065
commit 1b2c0a0f21

View File

@ -225,7 +225,7 @@ int _png_write(const char* filename, uint width, uint height, const ubyte* data,
printf("spng_get_png_buffer() error: %s\n", spng_strerror(ret));
}
else {
files::write_bytes(filename, (const char*)png_buf, png_size);
files::write_bytes(filename, (const unsigned char*)png_buf, png_size);
}
fflush(stdout);
spng_ctx_free(ctx);