Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Genrich <daniel.genrich@gmx.net>2008-08-17 21:08:00 +0400
committerDaniel Genrich <daniel.genrich@gmx.net>2008-08-17 21:08:00 +0400
commitfd0072e77cd28d52e00ea77542ba6d11018889b5 (patch)
tree6dc1858430424bac56898b0c6eaba05d062759ac /source/blender/src/interface.c
parent68765dc94bbb1bf924caa753d62d3f6029c60db5 (diff)
Win64: please check my changes if you ran across them ;) But should be fine since no additional crashes were reported!
Diffstat (limited to 'source/blender/src/interface.c')
-rw-r--r--source/blender/src/interface.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c
index e7b5b176979..a2b2af05083 100644
--- a/source/blender/src/interface.c
+++ b/source/blender/src/interface.c
@@ -105,6 +105,8 @@
#include "blendef.h"
#include "winlay.h"
+#include "BLO_sys_types.h" // for intptr_t support
+
#define INSIDE_BLOCK 1
#define INSIDE_PANEL_HEADER 2
#define INSIDE_PANEL_SCALE 3
@@ -6039,7 +6041,7 @@ void autocomplete_end(AutoComplete *autocpl, char *autoname)
/* autocomplete callback for ID buttons */
static void autocomplete_id(char *str, void *arg_v)
{
- int blocktype= (long)arg_v;
+ int blocktype= (intptr_t)arg_v;
ListBase *listb= wich_libbase(G.main, blocktype);
if(listb==NULL) return;
@@ -6370,7 +6372,7 @@ uiBut *uiDefIDPoinBut(uiBlock *block, uiIDPoinFuncFP func, short blocktype, int
ui_check_but(but);
if(blocktype)
- uiButSetCompleteFunc(but, autocomplete_id, (void *)(long)blocktype);
+ uiButSetCompleteFunc(but, autocomplete_id, (void *)(intptr_t)blocktype);
return but;
}