blob: 808b0e78fa30fb25bfcd1e85a17be6358a5431bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-efltk_Fl__Int__List_h,v 1.2 2011/10/11 00:29:41 dholland Exp $
- fix LP64 build
--- efltk/Fl_Int_List.h.orig 2003-07-03 20:36:35.000000000 +0000
+++ efltk/Fl_Int_List.h
@@ -22,6 +22,8 @@
#ifndef _FL_INT_LIST_H_
#define _FL_INT_LIST_H_
+#include <stdint.h>
+
#include "Fl_Ptr_List.h"
/** Fl_Int_List */
@@ -43,7 +45,7 @@ public:
char *to_string(const char *separator=",");
void from_string(const char * s, const char * separator=",");
- int item(uint index) const { return (int)Fl_Ptr_List::item(index); }
+ int item(uint index) const { return (int)(intptr_t)Fl_Ptr_List::item(index); }
int &operator [](uint ind) const { return (int&)items[ind]; }
};
|