[clfft] 02/16: fix typos causing type mismatch in examples

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Sep 1 07:42:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository clfft.

commit 26ff37b24ab3d4ae6c816357e29f5b4d3f22f3bd
Author: JCount <JCount42 at gmail.com>
Date:   Sun Jul 31 18:55:21 2016 -0400

    fix typos causing type mismatch in examples
---
 src/examples/fft1d.c | 2 +-
 src/examples/fft2d.c | 2 +-
 src/examples/fft3d.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/examples/fft1d.c b/src/examples/fft1d.c
index d088bfb..3090385 100644
--- a/src/examples/fft1d.c
+++ b/src/examples/fft1d.c
@@ -71,7 +71,7 @@ int main( void )
     X = (float *)malloc(N * 2 * sizeof(*X));
 
     /* print input array */
-    printf("\nPerforming fft on an one dimensional array of size N = %u\n", (unsigned long)N);
+    printf("\nPerforming fft on an one dimensional array of size N = %lu\n", (unsigned long)N);
     int print_iter = 0;
     while(print_iter<N) {
         float x = (float)print_iter;
diff --git a/src/examples/fft2d.c b/src/examples/fft2d.c
index 2b901a9..2ecb119 100644
--- a/src/examples/fft2d.c
+++ b/src/examples/fft2d.c
@@ -74,7 +74,7 @@ int main( void )
 
     /* print input array just using the
      * indices to fill the array with data */
-    printf("\nPerforming fft on an two dimensional array of size N0 x N1 : %u x %u\n", (unsigned long)N0, (unsigned long)N1);
+    printf("\nPerforming fft on an two dimensional array of size N0 x N1 : %lu x %lu\n", (unsigned long)N0, (unsigned long)N1);
 	size_t i, j;
     i = j = 0;
     for (i=0; i<N0; ++i) {
diff --git a/src/examples/fft3d.c b/src/examples/fft3d.c
index 56732b1..54bdfdd 100644
--- a/src/examples/fft3d.c
+++ b/src/examples/fft3d.c
@@ -74,7 +74,7 @@ int main( void )
 
     /* print input array just using the
      * indices to fill the array with data */
-    printf("\nPerforming fft on an two dimensional array of size N0 x N1 x N2 : %u x %u x %u\n", (unsigned long)N0, (unsigned long)N1, (unsigned long)N2);
+    printf("\nPerforming fft on an two dimensional array of size N0 x N1 x N2 : %lu x %lu x %lu\n", (unsigned long)N0, (unsigned long)N1, (unsigned long)N2);
     size_t i, j, k;
     i = j = k = 0;
     for (i=0; i<N0; ++i) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clfft.git



More information about the debian-science-commits mailing list