summaryrefslogtreecommitdiffstats
path: root/src/bltVecCmd.C
diff options
context:
space:
mode:
authorjoye <joye>2015-06-03 19:45:40 (GMT)
committerjoye <joye>2015-06-03 19:45:40 (GMT)
commitaa1589f76e1413ca016e0cc2551dc86ae08c4a03 (patch)
tree29f0b949ba4deeff87eacfbaf8181dc32ba00083 /src/bltVecCmd.C
parentd3818a0e2e8fc5cd66b23d28840cfa6df23391db (diff)
downloadblt-aa1589f76e1413ca016e0cc2551dc86ae08c4a03.zip
blt-aa1589f76e1413ca016e0cc2551dc86ae08c4a03.tar.gz
blt-aa1589f76e1413ca016e0cc2551dc86ae08c4a03.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltVecCmd.C')
-rw-r--r--src/bltVecCmd.C9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bltVecCmd.C b/src/bltVecCmd.C
index 67562e5..0bb4df7 100644
--- a/src/bltVecCmd.C
+++ b/src/bltVecCmd.C
@@ -1411,12 +1411,11 @@ static int SimplifyOp(Vector *vPtr, Tcl_Interp* interp,
int objc, Tcl_Obj* const objv[])
{
size_t i, n;
- int length, nPoints;
+ int nPoints;
int *simple;
double tolerance = 10.0;
Point2d *orig, *reduced;
- length = vPtr->length;
nPoints = vPtr->length / 2;
simple = (int*)malloc(nPoints * sizeof(int));
reduced = (Point2d*)malloc(nPoints * sizeof(Point2d));
@@ -1560,10 +1559,11 @@ static int SortOp(Vector *vPtr, Tcl_Interp* interp, int objc, Tcl_Obj* const obj
Vector *v2Ptr;
double *copy;
size_t *map;
- size_t sortLength, nBytes;
+ size_t nBytes;
int result;
int i;
- unsigned int n;
+ int n;
+ int sortLength;
SortSwitches switches;
sortDecreasing = 0;
@@ -1583,6 +1583,7 @@ static int SortOp(Vector *vPtr, Tcl_Interp* interp, int objc, Tcl_Obj* const obj
if (map == NULL) {
return TCL_ERROR;
}
+
sortLength = vPtr->length;
/*
* Create an array to store a copy of the current values of the