aboutsummaryrefslogtreecommitdiff
path: root/redist
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-03-16 22:10:01 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-03-16 22:10:01 -0600
commit93627f6b89d22e6e2f87df0bd4d809e168958b1d (patch)
tree930ef2b72e40dcbedd8cf77f188817c2b15dae5a /redist
parentc9cf2446c5eb18a29119c7dfe90c5b62f6b374c5 (diff)
downloadlibsurvive-93627f6b89d22e6e2f87df0bd4d809e168958b1d.tar.gz
libsurvive-93627f6b89d22e6e2f87df0bd4d809e168958b1d.tar.bz2
Removed unneeded prints; fixed memory issue in sba poser
Diffstat (limited to 'redist')
-rw-r--r--redist/json_helpers.c2
-rw-r--r--redist/minimal_opencv.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/redist/json_helpers.c b/redist/json_helpers.c
index 8704a93..ebacd2c 100644
--- a/redist/json_helpers.c
+++ b/redist/json_helpers.c
@@ -188,7 +188,6 @@ void json_load_file(const char* path) {
if (value_t->type == JSMN_ARRAY) {
i += json_load_array(JSON_STRING, tokens+i+2,value_t->size, tag); //look at array children
} else if (value_t->type == JSMN_OBJECT) {
- printf("Begin Object\n");
if (json_begin_object != NULL) json_begin_object(tag);
children = (int16_t)(value_t->size +1); //+1 to account for this loop where we are not yed parsing children
// i += decode_jsmn_object(JSON_STRING, tokens+i+2,value_t->size);
@@ -200,7 +199,6 @@ void json_load_file(const char* path) {
if (children>=0) children--;
if (children == 0) {
children = -1;
- printf("End Object\n");
if (json_end_object!=NULL) json_end_object();
}
diff --git a/redist/minimal_opencv.c b/redist/minimal_opencv.c
index 3f7bed7..e8a6214 100644
--- a/redist/minimal_opencv.c
+++ b/redist/minimal_opencv.c
@@ -175,10 +175,8 @@ double cvInvert(const CvMat *srcarr, CvMat *dstarr, int method) {
lapack_int *ipiv = malloc(sizeof(lapack_int) * MIN(srcarr->rows, srcarr->cols));
inf = LAPACKE_dgetrf(LAPACK_ROW_MAJOR, rows, cols, a, lda, ipiv);
assert(inf == 0);
- print_mat(dstarr);
inf = LAPACKE_dgetri(LAPACK_ROW_MAJOR, rows, a, lda, ipiv);
- print_mat(dstarr);
assert(inf >= 0);
if (inf > 0) {
printf("Warning: Singular matrix: \n");