diff options
author | U-zzzz-VAIO\developer <C:\Users\developer\AppData\Roaming\The Bat!> | 2023-09-19 22:57:30 +0300 |
---|---|---|
committer | U-zzzz-VAIO\developer <C:\Users\developer\AppData\Roaming\The Bat!> | 2023-09-19 22:57:30 +0300 |
commit | 83563fdd44e977ac624f279a27d25bbb0d48f604 (patch) | |
tree | dde7137c57c5fa3e92fddfac31688e8efaf69c13 | |
parent | c866e5d3985ba5b0508c94eb3efce8760fdef39e (diff) | |
download | libgha-83563fdd44e977ac624f279a27d25bbb0d48f604.tar.gz |
bzero -> memset replacement
-rw-r--r-- | src/gha.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -254,7 +254,7 @@ int gha_adjust_info_newton_md(const FLOAT* pcm, struct gha_info* info, size_t di } double M[dim * 3][dim * 3 + 1]; - bzero(M, dim * 3 * (dim * 3 + 1) * sizeof(double)); + memset(M, '\0', dim * 3 * (dim * 3 + 1) * sizeof(double)); for (i = 0; i < dim; i++) { for (j = 0; j < dim; j++) { for (n = 0; n < ctx->size; n++) { @@ -306,7 +306,7 @@ int gha_adjust_info_newton_md(const FLOAT* pcm, struct gha_info* info, size_t di } double fx0[dim * 3]; - bzero(fx0, dim * 3 * sizeof(double)); + memset(fx0, '\0', dim * 3 * sizeof(double)); if(sle_solve(&M[0][0], dim * 3, fx0)) { return -1; } |