diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2015-04-03 16:15:14 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2015-04-03 16:15:14 +0000 |
| commit | d6bcdbe37523a57699438ed92804b708b68b6024 (patch) | |
| tree | ad0a4350c3de4fee93dbfb82bc5c78b86b3f4265 | |
| parent | c8cacb7677850943e039bf4b08dd6b999cb7c9a6 (diff) | |
Remove useless cast that would break Windows 64-bit compilation.
This cast broke Windows 64-bit compilation with a hard error.
$ x86_64-w64-mingw32-g++ --version
x86_64-w64-mingw32-g++ (GCC) 4.8.3
Error message:
widget_panel.cxx:82:41: error: cast from ‘void*’ to ‘long int’ loses precision [-fpermissive]
wCallback->do_callback(wCallback, (long)v);
^
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10668 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | fluid/widget_panel.cxx | 4 | ||||
| -rw-r--r-- | fluid/widget_panel.fl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/fluid/widget_panel.cxx b/fluid/widget_panel.cxx index b670b8d08..fdbe4e6fe 100644 --- a/fluid/widget_panel.cxx +++ b/fluid/widget_panel.cxx @@ -78,8 +78,8 @@ Fl_Menu_Item menu_3[] = { Fl_Input *v_input[4]={(Fl_Input *)0}; static void cb_1(Fl_Tile*, void* v) { - wComment->do_callback(wComment, (long)v); -wCallback->do_callback(wCallback, (long)v); + wComment->do_callback(wComment, v); +wCallback->do_callback(wCallback, v); } Fl_Text_Editor *wComment=(Fl_Text_Editor *)0; diff --git a/fluid/widget_panel.fl b/fluid/widget_panel.fl index 376e5474e..9623b8a7e 100644 --- a/fluid/widget_panel.fl +++ b/fluid/widget_panel.fl @@ -605,8 +605,8 @@ Use Ctrl-J for newlines.} xywh {95 285 310 20} labelfont 1 labelsize 11 textsize tooltip {Extra initialization code for the widget.} xywh {95 150 310 20} labelsize 11 textfont 4 textsize 11 } Fl_Tile {} { - callback {wComment->do_callback(wComment, (long)v); -wCallback->do_callback(wCallback, (long)v);} open + callback {wComment->do_callback(wComment, v); +wCallback->do_callback(wCallback, v);} open xywh {95 175 310 130} resizable } { Fl_Group {} {open |
