# PyAssimp: fix data type for aiString::length. Thanks to Gellule for the patch.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1091 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/3/head
parent
7b14ea616e
commit
6dc3bc1c88
|
@ -1,6 +1,6 @@
|
|||
#-*- coding: UTF-8 -*-
|
||||
|
||||
from ctypes import POINTER, c_int, c_uint, c_char, c_float, Structure, c_char_p, c_double, c_ubyte
|
||||
from ctypes import POINTER, c_int, c_uint, c_char, c_float, Structure, c_char_p, c_double, c_ubyte, c_size_t
|
||||
|
||||
|
||||
class Vector2D(Structure):
|
||||
|
@ -51,7 +51,7 @@ class String(Structure):
|
|||
|
||||
_fields_ = [
|
||||
#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_uint),#String buffer. Size limit is MAXLEN#
|
||||
("length", c_size_t),#String buffer. Size limit is MAXLEN#
|
||||
("data", c_char*MAXLEN),
|
||||
]
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#-*- coding: UTF-8 -*-
|
||||
|
||||
from ctypes import POINTER, c_int, c_uint, c_char, c_float, Structure, c_char_p, c_double, c_ubyte
|
||||
from ctypes import POINTER, c_int, c_uint, c_char, c_float, Structure, c_char_p, c_double, c_ubyte, c_size_t
|
||||
|
||||
|
||||
class Vector2D(Structure):
|
||||
|
@ -51,7 +51,7 @@ class String(Structure):
|
|||
|
||||
_fields_ = [
|
||||
#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_uint),#String buffer. Size limit is MAXLEN#
|
||||
("length", c_size_t),#String buffer. Size limit is MAXLEN#
|
||||
("data", c_char*MAXLEN),
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue