These minor changes are to fix warnings that are produced by g++11.
The specific warnings relate to:
free being used to free memory allocated by calloc (reported as a mismatched allocation)
A comparison of v < 0 being logically invalid. The code was probably incorrectly changed to size_t at some point and doesn't account for the fact that the following code could potentially underflow 0
These minor changes are to fix warnings that are produced by g++11.
The specific warnings relate to:
free
being used to free memory allocated bycalloc
(reported as a mismatched allocation)v < 0
being logically invalid. The code was probably incorrectly changed tosize_t
at some point and doesn't account for the fact that the following code could potentially underflow0
This change is