From 0a2704969e8f3d69cd47018bfd65df05c0c499ed Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Fri, 10 Sep 2004 22:31:03 +0000 Subject: [PATCH] Warning Warning. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1971 --- src/hardware/pcspeaker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/pcspeaker.cpp b/src/hardware/pcspeaker.cpp index 77ef82a9..823c1c50 100644 --- a/src/hardware/pcspeaker.cpp +++ b/src/hardware/pcspeaker.cpp @@ -266,7 +266,7 @@ static void PCSPEAKER_CallBack(Bitu len) { index+=vol_len; } else { /* Check how long it will take to goto new level */ - float vol_time=abs(vol_diff)/SPKR_SPEED; + float vol_time=fabs(vol_diff)/SPKR_SPEED; if (vol_time<=vol_len) { /* Volume reaches endpoint in this block, calc until that point */ value+=vol_time*spkr.volcur;