summaryrefslogtreecommitdiff
path: root/x11/efltk/patches/patch-src_widgets_Fl__Input_cpp
blob: f37e50f64a0941153af8a2685da46903448ede56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-src_widgets_Fl__Input_cpp,v 1.2 2011/10/11 00:29:41 dholland Exp $

- fix LP64 build

--- src/widgets/Fl_Input.cpp.orig	2003-06-22 21:36:13.000000000 +0000
+++ src/widgets/Fl_Input.cpp
@@ -40,6 +40,7 @@
 // For NLS stuff
 #include "../core/fl_internal.h"
 
+#include <stdint.h>
 #include <string.h>
 #include <stdlib.h>
 #include <ctype.h>
@@ -59,7 +60,7 @@ static Fl_Menu_ *menu_ = &menu;
 static void cb_menu(Fl_Widget *w, void *d)
 {
     if(!menu_widget) return;
-    switch((int)d) {
+    switch((int)(intptr_t)d) {
         case CUT:
             menu_widget->copy(true);
             menu_widget->cut();