From 724754f16c92d7ca2031acd6d7d29c2a9b4a3bac Mon Sep 17 00:00:00 2001 From: GrimReaperFloof Date: Thu, 27 May 2021 20:47:45 +0200 Subject: [PATCH] Fix std::to_string warning for booleans in openmpt decoder --- src/decoder/plugins/OpenmptDecoderPlugin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decoder/plugins/OpenmptDecoderPlugin.cxx b/src/decoder/plugins/OpenmptDecoderPlugin.cxx index b6722a62f..bedb8341d 100644 --- a/src/decoder/plugins/OpenmptDecoderPlugin.cxx +++ b/src/decoder/plugins/OpenmptDecoderPlugin.cxx @@ -96,8 +96,8 @@ mod_decode(DecoderClient &client, InputStream &is) mod.ctl_set_boolean("render.resampler.emulate_amiga", openmpt_emulate_amiga); mod.ctl_set_text("render.resampler.emulate_amiga_type", openmpt_emulate_amiga_type); #else - mod.ctl_set("seek.sync_samples", std::to_string(openmpt_sync_samples)); - mod.ctl_set("render.resampler.emulate_amiga", std::to_string(openmpt_emulate_amiga)); + mod.ctl_set("seek.sync_samples", std::to_string((unsigned)openmpt_sync_samples)); + mod.ctl_set("render.resampler.emulate_amiga", std::to_string((unsigned)openmpt_emulate_amiga)); #endif static constexpr AudioFormat audio_format(OPENMPT_SAMPLE_RATE, SampleFormat::FLOAT, 2);