From 3c91c7aebafb446a2582267beb3b22c8bb475b3b Mon Sep 17 00:00:00 2001 From: "Field G. Van Zee" Date: Mon, 2 Apr 2018 12:40:25 -0500 Subject: [PATCH] Fixed 64b type mismatch warning in cblas_xerbla.c. Details: - Fixed a compiler warning concerning a type mismatch between the format specifier of the printf() call in cblas_xerbla.c and its corresponding (info) argument. The warning manifested when the CBLAS layer was enabled and the BLAS/CBLAS integer type siwas is set to 64 (the default is 32). The warning was fixed by changing the specifier from %d to %jd and typecasting the argument to intmax_t. Thanks to Dave Love for reporting this issue and submitting the patch. --- frame/compat/cblas/src/cblas_xerbla.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/compat/cblas/src/cblas_xerbla.c b/frame/compat/cblas/src/cblas_xerbla.c index 5d7908068..ebe6bd800 100644 --- a/frame/compat/cblas/src/cblas_xerbla.c +++ b/frame/compat/cblas/src/cblas_xerbla.c @@ -61,7 +61,7 @@ void cblas_xerbla(f77_int info, const char *rout, const char *form, ...) } } if (info) - fprintf(stderr, "Parameter %d to routine %s was incorrect\n", info, rout); + fprintf(stderr, "Parameter %jd to routine %s was incorrect\n", ( intmax_t )info, rout); vfprintf(stderr, form, argptr); va_end(argptr); if (info && !info)