use const char* to ensure pointer validity

This commit is contained in:
Krishna Vedala 2020-05-25 16:30:10 -04:00
parent 5a4f592b87
commit b714a6c4f1
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -33,7 +33,7 @@ long double complex poly_function(double *coeffs, unsigned int degree, long doub
return out;
}
static inline char *complex_str(long double complex x)
const char *complex_str(long double complex x)
{
static char msg[50];
double r = creal(x);