Skip to content

Commit 71111c3

Browse files
authored
Silence warnings about enums mismatch
1 parent 30b3ac8 commit 71111c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stable-diffusion.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ class StableDiffusionGGML {
274274
model_loader.set_wtype_override(GGML_TYPE_F32, "vae.");
275275
}
276276

277-
LOG_INFO("Weight type: %s", model_wtype != SD_TYPE_COUNT ? ggml_type_name(model_wtype) : "??");
278-
LOG_INFO("Conditioner weight type: %s", conditioner_wtype != SD_TYPE_COUNT ? ggml_type_name(conditioner_wtype) : "??");
279-
LOG_INFO("Diffusion model weight type: %s", diffusion_model_wtype != SD_TYPE_COUNT ? ggml_type_name(diffusion_model_wtype) : "??");
280-
LOG_INFO("VAE weight type: %s", vae_wtype != SD_TYPE_COUNT ? ggml_type_name(vae_wtype) : "??");
277+
LOG_INFO("Weight type: %s", model_wtype != (ggml_type) SD_TYPE_COUNT ? ggml_type_name(model_wtype) : "??");
278+
LOG_INFO("Conditioner weight type: %s", conditioner_wtype != (ggml_type) SD_TYPE_COUNT ? ggml_type_name(conditioner_wtype) : "??");
279+
LOG_INFO("Diffusion model weight type: %s", diffusion_model_wtype != (ggml_type) SD_TYPE_COUNT ? ggml_type_name(diffusion_model_wtype) : "??");
280+
LOG_INFO("VAE weight type: %s", vae_wtype != (ggml_type) SD_TYPE_COUNT ? ggml_type_name(vae_wtype) : "??");
281281

282282
LOG_DEBUG("ggml tensor size = %d bytes", (int)sizeof(ggml_tensor));
283283

0 commit comments

Comments
 (0)