Fix build on 64bit platforms

This commit is contained in:
Tilman Keskinoz 2007-08-03 14:24:41 +00:00
parent d3254fecb9
commit b30403e798
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197025

View file

@ -0,0 +1,20 @@
--- vdk/vdkclist.cc.orig 2007-08-03 16:19:09.000000000 +0200
+++ vdk/vdkclist.cc 2007-08-03 16:20:09.000000000 +0200
@@ -26,7 +26,7 @@
*
*/
-
+#include <sys/types.h>
#include "vdk/vdkclist.h"
#include "vdk/forms.h"
#include <cstring>
@@ -377,7 +377,7 @@
// load array;
WideSelection = VDKIntArray(listSize);
for(t = 0; t < WideSelection.size();t++,list = list->next)
- WideSelection[t] = (int) list->data;
+ WideSelection[t] = (intptr_t) list->data;
}
return WideSelection;
}