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:
authorNathan Letwory <nathan@letworyinteractive.com>2008-02-12 21:56:32 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2008-02-12 21:56:32 +0300
commitdf0d81f3c7ae91cad0bc612cdf49753ea661299b (patch)
tree5f89c77f1e2dbf5a413994dba2d4f517c8b9044a /source/blender/nodes
parentc5f84c6684d2c3ea571a9ee317b13c121409131a (diff)
* fix provided by Stefan Birgmeier (qwequ777): int pos may lead to crashes on 64-bit systems. PyDict_Next takes a Py_ssize_t, not an int (tsk tsk).
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c b/source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c
index 4c4044f6bce..1d1cf3d7e23 100644
--- a/source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c
+++ b/source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c
@@ -314,7 +314,8 @@ static int node_dynamic_parse(struct bNode *node)
NodeScriptDict *nsd = NULL;
PyObject *pyresult = NULL;
char *buf = NULL;
- int pos = 0, is_valid_script = 0;
+ Py_ssize_t pos = 0;
+ int is_valid_script = 0;
if (!node->id || !node->storage)
return 0;