mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-29 16:53:12 +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