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:
Diffstat (limited to 'source/blender/src/interface.c')
-rw-r--r--source/blender/src/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c
index 51191800290..60a5a59643d 100644
--- a/source/blender/src/interface.c
+++ b/source/blender/src/interface.c
@@ -5935,7 +5935,7 @@ static int findBitIndex(unsigned int x) {
/* autocomplete callback for ID buttons */
static void autocomplete_id(char *str, void *arg_v)
{
- int blocktype= (int)arg_v;
+ int blocktype= (long)arg_v;
ListBase *listb= wich_libbase(G.main, blocktype);
char truncate[32]= {0};
@@ -6285,7 +6285,7 @@ uiBut *uiDefIDPoinBut(uiBlock *block, uiIDPoinFuncFP func, short blocktype, int
ui_check_but(but);
if(blocktype)
- uiButSetCompleteFunc(but, autocomplete_id, (void *)(int)blocktype);
+ uiButSetCompleteFunc(but, autocomplete_id, (void *)(long)blocktype);
return but;
}