Skip to content

Commit 81556f3

Browse files
authored
chore: silence some warnings about precision loss (#620)
1 parent 3fb275a commit 81556f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/cli/main.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ struct SDParams {
126126
int upscale_repeats = 1;
127127

128128
std::vector<int> skip_layers = {7, 8, 9};
129-
float slg_scale = 0.;
130-
float skip_layer_start = 0.01;
131-
float skip_layer_end = 0.2;
129+
float slg_scale = 0.f;
130+
float skip_layer_start = 0.01f;
131+
float skip_layer_end = 0.2f;
132132
};
133133

134134
void print_params(SDParams params) {

0 commit comments

Comments
 (0)