mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-25 23:09:36 +03:00
use const char* to ensure pointer validity
This commit is contained in:
parent
5a4f592b87
commit
b714a6c4f1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user