summaryrefslogtreecommitdiff
path: root/src/Fl_File_Icon2.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-01-01 20:05:42 +0100
committerGitHub <noreply@github.com>2023-01-01 20:05:42 +0100
commita63ad76603accc70747a2073c78139299064c43b (patch)
treeb64302ca02847a73d9c8445c11023cfc34314dff /src/Fl_File_Icon2.cxx
parent23e8d831a868774c014993d52eead0cbe105f218 (diff)
FLUID refactor and macOS warnings removed (#623)
P renamed to g_project class Project renamed to class Fluid_Project fixes macOS type cast warnings
Diffstat (limited to 'src/Fl_File_Icon2.cxx')
-rw-r--r--src/Fl_File_Icon2.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Fl_File_Icon2.cxx b/src/Fl_File_Icon2.cxx
index 5b6334771..f81fa8af0 100644
--- a/src/Fl_File_Icon2.cxx
+++ b/src/Fl_File_Icon2.cxx
@@ -455,15 +455,15 @@ int Fl_File_Icon::load_image(const char *ifile) // I - File to read from
case 3 :
val[0] = lineptr[0];
val[1] = '\0';
- red = 255 * strtol(val, NULL, 16) / 15;
+ red = 255 * (int)strtol(val, NULL, 16) / 15;
val[0] = lineptr[1];
val[1] = '\0';
- green = 255 * strtol(val, NULL, 16) / 15;
+ green = 255 * (int)strtol(val, NULL, 16) / 15;
val[0] = lineptr[2];
val[1] = '\0';
- blue = 255 * strtol(val, NULL, 16) / 15;
+ blue = 255 * (int)strtol(val, NULL, 16) / 15;
break;
case 6 :
@@ -474,17 +474,17 @@ int Fl_File_Icon::load_image(const char *ifile) // I - File to read from
val[0] = lineptr[0];
val[1] = lineptr[1];
val[2] = '\0';
- red = strtol(val, NULL, 16);
+ red = (int)strtol(val, NULL, 16);
val[0] = lineptr[j + 0];
val[1] = lineptr[j + 1];
val[2] = '\0';
- green = strtol(val, NULL, 16);
+ green = (int)strtol(val, NULL, 16);
val[0] = lineptr[2 * j + 0];
val[1] = lineptr[2 * j + 1];
val[2] = '\0';
- blue = strtol(val, NULL, 16);
+ blue = (int)strtol(val, NULL, 16);
break;
}