Skip to content

Commit c01d9e7

Browse files
committed
fix posix compile
1 parent 9c81f61 commit c01d9e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/cli/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ int main(int argc, const char* argv[]) {
10501050
params.slg_scale,
10511051
params.skip_layer_start,
10521052
params.skip_layer_end,
1053-
step_callback);
1053+
(step_callback_t)step_callback);
10541054
} else {
10551055
sd_image_t input_image = {(uint32_t)params.width,
10561056
(uint32_t)params.height,

stable-diffusion.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ SD_API sd_ctx_t* new_sd_ctx(const char* model_path,
149149

150150
SD_API void free_sd_ctx(sd_ctx_t* sd_ctx);
151151

152-
typedef void (*step_callback_t)(int, struct ggml_tensor*, enum SDVersion);
152+
typedef void (*step_callback_t)(int, struct ggml_tensor*, int);
153153

154154
SD_API sd_image_t* txt2img(sd_ctx_t* sd_ctx,
155155
const char* prompt,

0 commit comments

Comments
 (0)