diff --git a/source/image_loader.d b/source/image_loader.d index 6128c64..10fbeea 100644 --- a/source/image_loader.d +++ b/source/image_loader.d @@ -78,7 +78,7 @@ FIMEMORY* readfile(string filename) void writefile(string filename, FIMEMORY* mem) { ubyte* bin; - uint len; + DWORD len; FreeImage_AcquireMemory(mem, &bin, &len); auto f = File(filename, "wb"); for (uint i = 0; i < len; i++)