From c1ba9f31ec3a1a53a1d257068f50a7be52f995c3 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 24 Nov 2022 12:51:26 +0100 Subject: Fix two Visual Studio compiler warnings + fix trailing whitespace (fluid) --- fluid/Fl_Group_Type.cxx | 2 +- src/Fl_SVG_Image.cxx | 2 +- src/Fl_Text_Display.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fluid/Fl_Group_Type.cxx b/fluid/Fl_Group_Type.cxx index 44b83e82b..37e0e8923 100644 --- a/fluid/Fl_Group_Type.cxx +++ b/fluid/Fl_Group_Type.cxx @@ -328,7 +328,7 @@ void Fl_Flex_Type::change_subtype_to(int n) { if (fw<=nc) fw = nc; // avoid division by zero int fh = f->h()-dh-tm-bm-(nc*gap); if (fh<=nc) fh = nc; // avoid division by zero - + if (f->type()==Fl_Flex::HORIZONTAL && n==Fl_Flex::VERTICAL) { float scl = (float)fh/(float)fw; for (int i=0; i 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); } -- cgit v1.2.3