From 6daeba047ebba794a7e64d22667ad1206b5d450d Mon Sep 17 00:00:00 2001 From: John Emmas Date: Thu, 5 Sep 2013 09:21:30 +0100 Subject: [PATCH] 'libs/audiographer' - Try 'lrintf' instead of 'rintf' which isn't available in MSVC --- libs/audiographer/private/gdither/gdither.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/audiographer/private/gdither/gdither.cc b/libs/audiographer/private/gdither/gdither.cc index d2a237eb74..75e16d7863 100644 --- a/libs/audiographer/private/gdither/gdither.cc +++ b/libs/audiographer/private/gdither/gdither.cc @@ -292,7 +292,7 @@ inline static void gdither_innner_loop_fp(const GDitherType dt, break; } - clamped = rintf(tmp); + clamped = (double)lrintf(tmp); if (clamped > clamp_u) { clamped = clamp_u; } else if (clamped < clamp_l) {