Skip to content

Commit

Permalink
Removed residue from testing [trlmessage[MsgText)] which was causing (#…
Browse files Browse the repository at this point in the history
…491)

memory issues as MsgText was undefined.
  • Loading branch information
mdlpstsci authored Jul 7, 2020
1 parent 9bcc985 commit d2ef87b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/acs/calacs/acsrej/piksrt.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <stdio.h>
# include "trlbuf.h"
/*
PIKSRT - Sorting by straight insertion.
Sorts an array arrayOfFloats[0...n-1] of float type into ascending numerical
Expand All @@ -12,12 +11,15 @@
There is an assumption the two input arrays are the same size.
Order: n^2
Date Author Description
---- ------ -----------
06-Jul-2020 M.D. De La Pena Removed stray trlmessage causing havoc.
*/

void piksrt (float arrayOfFloats[], int arrayLength) {
float value;
int position;
trlmessage (MsgText);

/* Loop over the full input array */
for (int j = 1; j < arrayLength; j++) {
Expand Down Expand Up @@ -45,7 +47,6 @@ void ipiksrt (float arrayOfFloats[], int arrayLength, int arrayOfInts[]) {
float fValue;
int iValue;
int position;
trlmessage (MsgText);

/* Loop over the input array */
for (int j = 1; j < arrayLength; j++) {
Expand Down

0 comments on commit d2ef87b

Please sign in to comment.