From dd75da6351c3e08618df3fd46a30d06582ae3163 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 21 Feb 2021 21:34:11 +0100 Subject: Remove VS compilation warnings about implicit type conversions. --- src/Fl_File_Icon2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Fl_File_Icon2.cxx') diff --git a/src/Fl_File_Icon2.cxx b/src/Fl_File_Icon2.cxx index ce0b78a46..5b6334771 100644 --- a/src/Fl_File_Icon2.cxx +++ b/src/Fl_File_Icon2.cxx @@ -240,7 +240,7 @@ Fl_File_Icon::load_fti(const char *fti) // I - File to read from else if (strcmp(command, "bgnoutlinepolygon") == 0) { add(OUTLINEPOLYGON); - outline = add(0) - data_; + outline = int(add(0) - data_); add(0); } else if (strcmp(command, "endoutlinepolygon") == 0 && outline) @@ -408,7 +408,7 @@ int Fl_File_Icon::load_image(const char *ifile) // I - File to read from ptr = img->data(); sscanf(*ptr, "%*d%*d%d%d", &ncolors, &chars_per_color); - colors = new Fl_Color[1 << (chars_per_color * 8)]; + colors = new Fl_Color[int(1 << (chars_per_color * 8))]; // Read the colormap... memset(colors, 0, sizeof(Fl_Color) << (chars_per_color * 8)); -- cgit v1.2.3