From d24adbd32c2b9aeb1a40c1bb99c19e9a8e84ad71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Sat, 7 Dec 2019 22:09:03 +0100 Subject: [PATCH] aiString.length is really of type "ai_uint32" which corresponds to "c_uint32" and not to "c_size_t" (which is different on 64bit systems and 32bit systems!) Closes: https://github.com/assimp/assimp/issues/2788 --- port/PyAssimp/pyassimp/structs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port/PyAssimp/pyassimp/structs.py b/port/PyAssimp/pyassimp/structs.py index b93aae68c..b506bc036 100644 --- a/port/PyAssimp/pyassimp/structs.py +++ b/port/PyAssimp/pyassimp/structs.py @@ -76,7 +76,7 @@ class String(Structure): # Binary length of the string excluding the terminal 0. This is NOT the # logical length of strings containing UTF-8 multibyte sequences! It's # the number of bytes from the beginning of the string to its end. - ("length", c_size_t), + ("length", c_uint32), # String buffer. Size limit is MAXLEN ("data", c_char*MAXLEN),