From 81556f3136d7881ef3b34ec2aa650cf760d52601 Mon Sep 17 00:00:00 2001 From: vmobilis <75476228+vmobilis@users.noreply.github.com> Date: Sun, 9 Mar 2025 07:22:39 +0300 Subject: [PATCH] chore: silence some warnings about precision loss (#620) --- examples/cli/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/cli/main.cpp b/examples/cli/main.cpp index a2f1d1f..af6b2bb 100644 --- a/examples/cli/main.cpp +++ b/examples/cli/main.cpp @@ -126,9 +126,9 @@ struct SDParams { int upscale_repeats = 1; std::vector skip_layers = {7, 8, 9}; - float slg_scale = 0.; - float skip_layer_start = 0.01; - float skip_layer_end = 0.2; + float slg_scale = 0.f; + float skip_layer_start = 0.01f; + float skip_layer_end = 0.2f; }; void print_params(SDParams params) {