[Bf-blender-cvs] [0590430] object_nodes: Fix minor error from strict pointer casts.

Lukas Tönne noreply at git.blender.org
Tue Nov 24 09:42:44 CET 2015


Commit: 05904305097ade91b47dde92569e9d50bc537cf4
Author: Lukas Tönne
Date:   Thu Sep 17 10:12:27 2015 +0200
Branches: object_nodes
https://developer.blender.org/rB05904305097ade91b47dde92569e9d50bc537cf4

Fix minor error from strict pointer casts.

===================================================================

M	source/blender/blenvm/intern/bvm_module.cc

===================================================================

diff --git a/source/blender/blenvm/intern/bvm_module.cc b/source/blender/blenvm/intern/bvm_module.cc
index f7f269e..cd61636 100644
--- a/source/blender/blenvm/intern/bvm_module.cc
+++ b/source/blender/blenvm/intern/bvm_module.cc
@@ -67,7 +67,7 @@ struct BVMFunction *BVM_module_create_function(BVMModule *mod, const char *name)
 {
 	BLI_assert(BLI_ghash_lookup(mod->functions, name) == NULL);
 	
-	BVMFunction *fun = MEM_callocN(sizeof(BVMFunction), "BVM function");
+	BVMFunction *fun = (BVMFunction *)MEM_callocN(sizeof(BVMFunction), "BVM function");
 	BLI_strncpy(fun->name, name, sizeof(fun->name));
 	
 	BLI_ghash_insert(mod->functions, fun->name, fun);




More information about the Bf-blender-cvs mailing list