summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-11-14 19:08:02 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-11-14 19:08:02 +0100
commitd1054c5f6c7d5e6299ff1976d3b2856db5b6ce65 (patch)
treef3ef5ff5dcbff41752cd638821af94958d7a0413 /src
parentedf7510dda6b62905920fbf3a2fe01abbeab920e (diff)
Fix yet another Visual Studio compiler warning
Diffstat (limited to 'src')
-rw-r--r--src/drivers/SVG/Fl_SVG_File_Surface.cxx2
1 files changed, 1 insertions, 1 deletions
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);