aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorU-zzzz-VAIO\developer <C:\Users\developer\AppData\Roaming\The Bat!>2023-09-19 22:57:30 +0300
committerU-zzzz-VAIO\developer <C:\Users\developer\AppData\Roaming\The Bat!>2023-09-19 22:57:30 +0300
commit83563fdd44e977ac624f279a27d25bbb0d48f604 (patch)
treedde7137c57c5fa3e92fddfac31688e8efaf69c13
parentc866e5d3985ba5b0508c94eb3efce8760fdef39e (diff)
downloadlibgha-83563fdd44e977ac624f279a27d25bbb0d48f604.tar.gz
bzero -> memset replacement
-rw-r--r--src/gha.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gha.c b/src/gha.c
index 194b61c..cd61312 100644
--- a/src/gha.c
+++ b/src/gha.c
@@ -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;
}