diff options
author | Ton Roosendaal <ton@blender.org> | 2007-04-29 14:49:02 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2007-04-29 14:49:02 +0400 |
commit | 243d1a28c0635a85c2dca9a23e9465b170b0ba3a (patch) | |
tree | 90a6fb16f8ca90d04d70e8ff129c24c98b7f003a /source/blender/src/header_script.c | |
parent | e4d6f331eb90f7375a241a7698bd6958b6ced326 (diff) |
Casting fixes for 64 bits. Incomplete commit, discussion on proper casting
has to be finished.
Diffstat (limited to 'source/blender/src/header_script.c')
-rw-r--r-- | source/blender/src/header_script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/header_script.c b/source/blender/src/header_script.c index cb1f89d465f..98f18c4e2ac 100644 --- a/source/blender/src/header_script.c +++ b/source/blender/src/header_script.c @@ -72,7 +72,7 @@ /* action executed after clicking in Scripts menu */ static void do_scripts_submenus(void *int_arg, int event) { - int menutype = (int)int_arg; + int menutype = (long)int_arg; BPY_menu_do_python (menutype, event); @@ -84,7 +84,7 @@ static uiBlock *script_scripts_submenus(void *int_menutype) uiBlock *block; short yco = 20, menuwidth = 120; BPyMenu *pym; - int i = 0, menutype = (int)int_menutype; + int i = 0, menutype = (long)int_menutype; if ((menutype < 0) || (menutype > PYMENU_SCRIPTS_MENU_TOTAL)) return NULL; @@ -135,7 +135,7 @@ static uiBlock *script_scriptsmenu(void *arg_unused) uiBlockSetButmFunc(block, do_script_scriptsmenu, NULL); for (i = 0; i < PYMENU_SCRIPTS_MENU_TOTAL; i++) { - uiDefIconTextBlockBut(block, script_scripts_submenus, (void *)i, ICON_RIGHTARROW_THIN, BPyMenu_group_itoa(i), 0, yco-=20, menuwidth, 19, ""); + uiDefIconTextBlockBut(block, script_scripts_submenus, (void *)(long)i, ICON_RIGHTARROW_THIN, BPyMenu_group_itoa(i), 0, yco-=20, menuwidth, 19, ""); } uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, ""); |