Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / efltk / patches / patch-src_widgets_Fl__Calendar_cpp
blobe80d456a1d5b20ec62d25f8cf9183f00680bb65a
1 $NetBSD: patch-src_widgets_Fl__Calendar_cpp,v 1.1 2011/10/02 03:44:10 dholland Exp $
3 - fix LP64 build
5 --- src/widgets/Fl_Calendar.cpp.orig    2003-05-30 08:46:58.000000000 +0000
6 +++ src/widgets/Fl_Calendar.cpp
7 @@ -15,6 +15,8 @@
8   *                                                                         *
9   ***************************************************************************/
11 +#include <stdint.h>
13  #include <efltk/Fl_Calendar.h>
14  #include <efltk/Fl.h>
16 @@ -43,13 +45,13 @@ static const int monthChanges[4] = {
17  // Callback function for day buttons
18  void Fl_Calendar::cbDayButtonClicked(Fl_Widget *button, void *param) {
19      Fl_Calendar *c = (Fl_Calendar *)button->parent()->parent();
20 -    c->dayButtonClicked((unsigned)param);
21 +    c->dayButtonClicked((unsigned)(uintptr_t)param);
22  }
24  // Callback function for switch buttons
25  void Fl_Calendar::cbSwitchButtonClicked(Fl_Widget *button, void *param) {
26      Fl_Calendar *c = (Fl_Calendar *)button->parent();
27 -    c->switchButtonClicked((int)param);
28 +    c->switchButtonClicked((int)(intptr_t)param);
29  }
31  void Fl_Calendar::dayButtonClicked(unsigned day) {