Blender Git Loki

Git Commits -> Revision 5ea1049

Revision 5ea1049 by Bastien Montagne (master)
September 20, 2020, 16:41 (GMT)
Sanitize type 'size' parameters in our read/write file code

This patch tries to sanitize the types of our size parameters across our read
and write code, which is currently fairly inconsistent (using `int`, `uint`,
`size_t`...), by using `size_t` everywhere. Since in Blender file themselves
we can only store chunk of size `MAX_INT`, added some asserts to ensure that
as well.

See {T79561} for details.

Differential Revision: https://developer.blender.org/D8672

Commit Details:

Full Hash: 5ea1049e7520c0f369d2a76811410b1274699e81
Parent Commit: 86c5d1f
Lines Changed: +96, -83

Tehnyt: Miika HämäläinenViimeksi p?ivitetty: 07.11.2014 14:18 MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021