summaryrefslogtreecommitdiff
path: root/src/Fl_File_Icon2.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-02-21 21:34:11 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-02-21 21:34:27 +0100
commitdd75da6351c3e08618df3fd46a30d06582ae3163 (patch)
tree16f2683c785cd3792c0a6cae5dbe5dfaefca8981 /src/Fl_File_Icon2.cxx
parent07dfcd0fb79bf953773b7330334449224fa293a1 (diff)
Remove VS compilation warnings about implicit type conversions.
Diffstat (limited to 'src/Fl_File_Icon2.cxx')
-rw-r--r--src/Fl_File_Icon2.cxx4
1 files changed, 2 insertions, 2 deletions
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));