1 $NetBSD: patch-src_widgets_Fl__Calendar_cpp,v 1.1 2011/10/02 03:44:10 dholland Exp $
5 --- src/widgets/Fl_Calendar.cpp.orig 2003-05-30 08:46:58.000000000 +0000
6 +++ src/widgets/Fl_Calendar.cpp
9 ***************************************************************************/
13 #include <efltk/Fl_Calendar.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);
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);
31 void Fl_Calendar::dayButtonClicked(unsigned day) {