mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Compile fix
This commit is contained in:
@ -875,7 +875,7 @@ int check_array_is_inf(float *arr, int size)
|
||||
|
||||
int *random_index_order(int min, int max)
|
||||
{
|
||||
int *inds = calloc(max - min, sizeof(int));
|
||||
int *inds = (int *)calloc(max - min, sizeof(int));
|
||||
int i;
|
||||
for (i = min; i < max; ++i) {
|
||||
inds[i - min] = i;
|
||||
|
Reference in New Issue
Block a user