summaryrefslogtreecommitdiff
path: root/stable_diffusion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'stable_diffusion.cpp')
-rw-r--r--stable_diffusion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/stable_diffusion.cpp b/stable_diffusion.cpp
index 022c3c2..3d0c26b 100644
--- a/stable_diffusion.cpp
+++ b/stable_diffusion.cpp
@@ -33,7 +33,7 @@ SD_JSONToSource(project_data *File, project_state *State, memory *Memory, void *
uint64 MaxSize = Width * Height * 4;
void *PNGData = Memory_PushScratch(Memory, MaxSize);
uint64 PNGSize = 0;
- base64_decode(&Data[i], c, (uint8 *)PNGData, &PNGSize);
+ base64_decode(&Data[i], c, (uint8 *)PNGData, (size_t *)&PNGSize);
int x, y, a;
void *RawData = stbi_load_from_memory((stbi_uc *)PNGData, PNGSize, &x, &y, &a, 4);
Assert(x == Width && y == Height);