FLTK logo

[master] e76611a - STR 3442: invalid conversion warning in VisualC

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] e76611a - STR 3442: invalid conversion warning in VisualC "Matthias Melcher" Dec 13, 2021  
 
commit e76611a1fe3c49e66c42d9d4f0e2c995fa7f6f5e
Author:     Matthias Melcher <git@matthiasm.com>
AuthorDate: Mon Dec 13 18:09:53 2021 +0100
Commit:     Matthias Melcher <github@matthiasm.com>
CommitDate: Mon Dec 13 18:17:07 2021 +0100

    STR 3442: invalid conversion warning in VisualC

 fluid/Shortcut_Button.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git fluid/Shortcut_Button.cxx fluid/Shortcut_Button.cxx
index bc65fe8..4d8665b 100644
--- fluid/Shortcut_Button.cxx
+++ fluid/Shortcut_Button.cxx
@@ -129,7 +129,7 @@ int Widget_Bin_Button::handle(int inEvent)
         // make it into a dnd event
         const char *type_name = (const char*)user_data();
         Fl_Type::current_dnd = Fl_Type::current;
-        Fl::copy(type_name, strlen(type_name)+1, 0);
+        Fl::copy(type_name, (int)strlen(type_name)+1, 0);
         Fl::dnd();
         return 1;
       }
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'.