pkgsrc/x11/efltk/patches/patch-efltk_db_Fl__Params_h

24 lines
829 B
Text

$NetBSD: patch-efltk_db_Fl__Params_h,v 1.2 2011/10/11 00:29:41 dholland Exp $
- fix LP64 build
--- efltk/db/Fl_Params.h.orig 2003-04-23 17:56:23.000000000 +0000
+++ efltk/db/Fl_Params.h
@@ -18,6 +18,8 @@
#ifndef _FL_PARAMS_H_
#define _FL_PARAMS_H_
+#include <stdint.h>
+
#include "../Fl_String.h"
#include "../Fl_Variant.h"
#include "../Fl_Ptr_List.h"
@@ -45,7 +47,7 @@ public:
void bind_clear() { m_bindParamIndexes.clear(); }
void bind_add(unsigned bindIndex);
unsigned bind_count() { return m_bindParamIndexes.count(); }
- unsigned bind_index(unsigned ind) { return (unsigned)m_bindParamIndexes[ind]; }
+ unsigned bind_index(unsigned ind) { return (unsigned)(uintptr_t)m_bindParamIndexes[ind]; }
// ASSIGNMENT OPERATORS
Fl_Variant& operator =(const Fl_Variant &C) {