FLTK logo

[master] c1ba9f3 - Fix two Visual Studio compiler warnings

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] c1ba9f3 - Fix two Visual Studio compiler warnings "Albrecht Schlosser" Nov 24, 2022  
 
commit c1ba9f31ec3a1a53a1d257068f50a7be52f995c3
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Thu Nov 24 12:51:26 2022 +0100
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Thu Nov 24 12:51:26 2022 +0100

    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 fluid/Fl_Group_Type.cxx fluid/Fl_Group_Type.cxx
index 44b83e8..37e0e89 100644
--- fluid/Fl_Group_Type.cxx
+++ 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<nc; i++) {
diff --git src/Fl_SVG_Image.cxx src/Fl_SVG_Image.cxx
index c971f21..7c8a6ff 100644
--- src/Fl_SVG_Image.cxx
+++ 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 src/Fl_Text_Display.cxx src/Fl_Text_Display.cxx
index e6f30c1..2df3506 100644
--- src/Fl_Text_Display.cxx
+++ 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);
         }
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.