summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-11-24 12:51:26 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-11-24 12:51:26 +0100
commitc1ba9f31ec3a1a53a1d257068f50a7be52f995c3 (patch)
tree25daa86f749dea6536f0b952d9270317a9db4998 /src
parentb16309f13e732e566c1beb4a02a2165ebb3ab4ab (diff)
Fix two Visual Studio compiler warnings
+ fix trailing whitespace (fluid)
Diffstat (limited to 'src')
-rw-r--r--src/Fl_SVG_Image.cxx2
-rw-r--r--src/Fl_Text_Display.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_SVG_Image.cxx b/src/Fl_SVG_Image.cxx
index c971f2156..7c8a6ff12 100644
--- a/src/Fl_SVG_Image.cxx
+++ b/src/Fl_SVG_Image.cxx
@@ -130,7 +130,7 @@ static char *svg_inflate(gzFile gzf, // can be a file or the read end of a pipe
break;
}
- l = gzread(gzf, p, size);
+ l = gzread(gzf, p, (unsigned int)size);
if (l > 0) {
p += l; *p = 0;
}
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index e6f30c136..2df350669 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -4153,7 +4153,7 @@ int Fl_Text_Display::handle(int event) {
if (dragType==DRAG_START_DND) {
if (!Fl::event_is_click() && Fl::dnd_text_ops()) {
const char* copy = buffer()->selection_text();
- Fl::copy(copy, strlen(copy));
+ Fl::copy(copy, (int)strlen(copy));
Fl::screen_driver()->dnd(1);
free((void*)copy);
}