From f1828824a10edc19a48e4391b4cc2dd4dce572d8 Mon Sep 17 00:00:00 2001 From: emcp Date: Thu, 9 Aug 2018 17:32:05 +0200 Subject: [PATCH] Found another warning regarding abs. --- examples/spectrum.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/spectrum.jl b/examples/spectrum.jl index 18fbc5d..88f80fa 100644 --- a/examples/spectrum.jl +++ b/examples/spectrum.jl @@ -14,7 +14,7 @@ const fs = Float32[float(f) for f in domain(fft(buf)[fmin..fmax])] while true read!(stream, buf) - plot(fs, abs(fft(buf)[fmin..fmax]), xlim=(fs[1],fs[end]), ylim=(0,100)) + plot(fs, abs.(fft(buf)[fmin..fmax]), xlim=(fs[1],fs[end]), ylim=(0,100)) end end