Skip to content

Commit fe2d867

Browse files
committed
fix posix compile
1 parent 6eb6d07 commit fe2d867

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/cli/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ int main(int argc, const char* argv[]) {
989989
params.style_ratio,
990990
params.normalize_input,
991991
params.input_id_images_path.c_str(),
992-
step_callback);
992+
(step_callback_t)step_callback);
993993
} else {
994994
sd_image_t input_image = {(uint32_t)params.width,
995995
(uint32_t)params.height,

stable-diffusion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ SD_API sd_ctx_t* new_sd_ctx(const char* model_path,
146146

147147
SD_API void free_sd_ctx(sd_ctx_t* sd_ctx);
148148

149-
typedef void (*step_callback_t)(int, struct ggml_tensor*, enum SDVersion);
149+
typedef void (*step_callback_t)(int, struct ggml_tensor*, int);
150150

151151
SD_API sd_image_t* txt2img(sd_ctx_t* sd_ctx,
152152
const char* prompt,

0 commit comments

Comments
 (0)