diff --git a/src/minimodem.c b/src/minimodem.c index b976f27..0d40383 100644 --- a/src/minimodem.c +++ b/src/minimodem.c @@ -31,7 +31,7 @@ band_mag( fftwf_complex * const cplx, unsigned int band, float scalar ) { float re = cplx[band][0]; float im = cplx[band][1]; - float mag = hypot(re, im); + float mag = hypotf(re, im); return mag * scalar; } diff --git a/src/tscope_print.c b/src/tscope_print.c index 640cb36..595a077 100644 --- a/src/tscope_print.c +++ b/src/tscope_print.c @@ -26,7 +26,7 @@ band_mag( fftwf_complex * const cplx, unsigned int band, float scalar ) { float re = cplx[band][0]; float im = cplx[band][1]; - float mag = hypot(re, im) * scalar; + float mag = hypotf(re, im) * scalar; return mag; }