From d1054c5f6c7d5e6299ff1976d3b2856db5b6ce65 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 14 Nov 2022 19:08:02 +0100 Subject: Fix yet another Visual Studio compiler warning --- src/drivers/SVG/Fl_SVG_File_Surface.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/drivers/SVG/Fl_SVG_File_Surface.cxx b/src/drivers/SVG/Fl_SVG_File_Surface.cxx index da48219aa..ba8099d7f 100644 --- a/src/drivers/SVG/Fl_SVG_File_Surface.cxx +++ b/src/drivers/SVG/Fl_SVG_File_Surface.cxx @@ -206,7 +206,7 @@ void Fl_SVG_Graphics_Driver::compute_dasharray(float s, char *dashes) { if (user_dash_array_ && user_dash_array_ != dashes) {free(user_dash_array_); user_dash_array_ = NULL;} if (dashes && *dashes) { if (dasharray_) free(dasharray_); - int array_len = 10*strlen(dashes) + 1; + int array_len = int(10*strlen(dashes) + 1); dasharray_ = (char*)calloc(array_len, 1); for (char *p = dashes; *p; p++) { int c = snprintf(dasharray_+strlen(dasharray_), array_len, "%.3f,", (*p)/s); -- cgit v1.2.3