mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-23 07:27:05 +00:00
Fix wrong order of arguments in calloc
This commit is contained in:
parent
c6010d943e
commit
c91c31bd35
@ -1034,7 +1034,7 @@ double *zeros(int n, int m)
|
|||||||
{
|
{
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
if (!(p = static_cast<double *>(calloc(sizeof(double), n * m))))
|
if (!(p = static_cast<double *>(calloc(n * m, sizeof(double)))))
|
||||||
{
|
{
|
||||||
fatalerr("matrix memory allocation error: n=%d,m=%d\n", n, m);
|
fatalerr("matrix memory allocation error: n=%d,m=%d\n", n, m);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user