Skip to content

Commit

Permalink
fix: remove printing of numbers for C errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jorainer committed Dec 4, 2023
1 parent 17d966f commit 29cb234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mzROI.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ struct scanBuf * getScan(int scan, double *pmz, double *pintensity, int *pscanin
scanbuf->thisScan= (struct scanStruct *) calloc(N, sizeof(struct scanStruct));
// scanbuf->thisScan= (struct scanStruct *) malloc(N * sizeof(struct scanStruct));
if (scanbuf->thisScan == NULL)
error("findmzROI/getThisScan: Memory could not be allocated (%i * %i) !\n",N , sizeof(struct scanStruct));
error("findmzROI/getThisScan: Memory could not be allocated!\n");

scanbuf->thisScanLength=N;

Expand Down Expand Up @@ -411,7 +411,7 @@ struct scanBuf * getScan(int scan, double *pmz, double *pintensity, int *pscanin
if (N > 0) {
scanbuf->nextScan= (double *) calloc(N, sizeof(double));
if (scanbuf->nextScan == NULL)
error("findmzROI/getNextScan: Memory could not be allocated (%i * %i) !\n",N , sizeof(struct scanStruct));
error("findmzROI/getNextScan: Memory could not be allocated!\n");
scanbuf->nextScanLength=N;

for (idx=idx1;idx <= idx2; idx++)
Expand Down

0 comments on commit 29cb234

Please sign in to comment.