Skip to content

Commit

Permalink
fix posix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
stduhpf committed Oct 30, 2024
1 parent bd88c48 commit 61fc137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ int main(int argc, const char* argv[]) {
params.style_ratio,
params.normalize_input,
params.input_id_images_path.c_str(),
step_callback);
(step_callback_t)step_callback);
} else {
sd_image_t input_image = {(uint32_t)params.width,
(uint32_t)params.height,
Expand Down
2 changes: 1 addition & 1 deletion stable-diffusion.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ SD_API sd_ctx_t* new_sd_ctx(const char* model_path,

SD_API void free_sd_ctx(sd_ctx_t* sd_ctx);

typedef void (*step_callback_t)(int, struct ggml_tensor*, enum SDVersion);
typedef void (*step_callback_t)(int, struct ggml_tensor*, int);

SD_API sd_image_t* txt2img(sd_ctx_t* sd_ctx,
const char* prompt,
Expand Down

0 comments on commit 61fc137

Please sign in to comment.