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.
This commit is contained in:
Field G. Van Zee
2018-04-02 12:40:25 -05:00
parent 71eaf449a8
commit 3c91c7aeba

View File

@@ -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)