From f63f918530955994b7dc3e2dd4cdb4c09f6a2153 Mon Sep 17 00:00:00 2001 From: tTh Date: Mon, 30 May 2022 21:38:29 +0200 Subject: [PATCH] changing host --- funcs/falsecolors.c | 6 +++--- funcs/tests.c | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/funcs/falsecolors.c b/funcs/falsecolors.c index 663dd98..c77e2dc 100644 --- a/funcs/falsecolors.c +++ b/funcs/falsecolors.c @@ -21,11 +21,11 @@ int fimg_falsecolors_0(FloatImg *src, FloatImg *dst, int k, float valf) { int x, y; -fprintf(stderr, ">>> %s ( %p %p %d %f )\n", __func__, +fprintf(stderr, ">>> %s ( %p %p %d %f )\n", __func__, src, dst, k, valf); -for (y=0; yheight, y++) { - for (x=0; xwidth, x++) { +for (y=0; yheight; y++) { + for (x=0; xwidth; x++) { /***********************/ /* DO SOMETHING HERE ! */ diff --git a/funcs/tests.c b/funcs/tests.c index 3d48468..4d84c81 100644 --- a/funcs/tests.c +++ b/funcs/tests.c @@ -36,6 +36,9 @@ foo = fimg_clear(&dst); foo = fimg_falsecolors_0(&src, &dst, type, 3.141592654); foo= fimg_export_picture(&dst, dstfile, 0); + +fimg_destroy(&src); fimg_destroy(&dst); + return -1; } /* --------------------------------------------------------------------- */