Blender Git Commit Log

Git Commits -> Revision 1cb7267

Revision 1cb7267 by Ray molenkamp (master)
August 28, 2020, 15:47 (GMT)
Cleanup: Fix build error with msvc

`ssize_t` is not a standardized type (it's a posix type)
given the line in question here is calculating the size
of a memory allocation there's no logical way this
should ever be negative.

I do not know this code too well and was unsure if
`mdverts->totweight` could ever be < 0, so I protected
it with a clamp, just in case.

Commit Details:

Full Hash: 1cb7267a9f9f1695f296bdbb618ec117f483484c
Parent Commit: 4749bd2
Lines Changed: +1, -1

1 Modified Path:

/source/blender/blenkernel/intern/deform.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021