diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2008-02-12 21:56:32 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2008-02-12 21:56:32 +0300 |
commit | df0d81f3c7ae91cad0bc612cdf49753ea661299b (patch) | |
tree | 5f89c77f1e2dbf5a413994dba2d4f517c8b9044a /source/blender | |
parent | c5f84c6684d2c3ea571a9ee317b13c121409131a (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')
-rw-r--r-- | source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c | 3 |
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; |