summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.dll.rc.data
diff options
context:
space:
mode:
authorRyan Roden-Corrent <[email protected]>2021-09-22 07:04:10 -0400
committerGitHub <[email protected]>2021-09-22 13:04:10 +0200
commit9607ea5c0a28d1a3f5812c6fdc4822ab4b48cde2 (patch)
tree417a1fae8e1f791359f24435dde31efd035eb186 /src/raylib.dll.rc.data
parent8a434b4fd4dc8d59697ed005a7ef85346bd474e9 (diff)
downloadraylib-9607ea5c0a28d1a3f5812c6fdc4822ab4b48cde2.tar.gz
raylib-9607ea5c0a28d1a3f5812c6fdc4822ab4b48cde2.zip
Use unsigned int for animation count. (#2002)
LoadModelAnimations takes an `int` for the animation count parameter. The animation count should never be negative, so it makes sense to specify it as unsigned in the API. This matches the API for UnloadModelAnimations, which expects an unsigned int. Both GLTF and IQMM also store the animation count internally as unsigned, and we were casting to a signed int for no reason. GLTF actually uses `size_t` internally, so we're technically risking overflow, but having 2^32 animations seems unlikely.
Diffstat (limited to 'src/raylib.dll.rc.data')
0 files changed, 0 insertions, 0 deletions