diff --git a/imgui.cpp b/imgui.cpp index 3dfa7cf..80d8473 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6274,7 +6274,7 @@ { // Positive: rescale to the positive range before powering float a; - if (fabsf(linear_zero_pos - 1.0f) > 1.e-6) + if (fabsf(linear_zero_pos - 1.0f) > 1.e-6f) a = (normalized_pos - linear_zero_pos) / (1.0f - linear_zero_pos); else a = normalized_pos; diff --git a/imgui.cpp b/imgui.cpp index 3dfa7cf..80d8473 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6274,7 +6274,7 @@ { // Positive: rescale to the positive range before powering float a; - if (fabsf(linear_zero_pos - 1.0f) > 1.e-6) + if (fabsf(linear_zero_pos - 1.0f) > 1.e-6f) a = (normalized_pos - linear_zero_pos) / (1.0f - linear_zero_pos); else a = normalized_pos; diff --git a/stb_rect_pack.h b/stb_rect_pack.h index d7e899c..fafd889 100644 --- a/stb_rect_pack.h +++ b/stb_rect_pack.h @@ -268,9 +268,9 @@ } // find minimum y position if it starts at x1 -static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste) +static int stbrp__skyline_find_min_y(stbrp_context *, stbrp_node *first, int x0, int width, int *pwaste) { - (void)c; + //(void)c; stbrp_node *node = first; int x1 = x0 + width; int min_y, visited_width, waste_area;