aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/Traits.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-02 11:47:17 +0100
committerMax Kellermann <max@duempel.org>2013-12-02 11:47:17 +0100
commitf761d583b579e4bdfe3013b52a46a76a8f31abf8 (patch)
treed610b21c96345082122de75eb4af9565d4ce844f /src/pcm/Traits.hxx
parentcee1ac150e4176e5485d54a546391be53a6da823 (diff)
downloadmpd-f761d583b579e4bdfe3013b52a46a76a8f31abf8.tar.gz
mpd-f761d583b579e4bdfe3013b52a46a76a8f31abf8.tar.xz
mpd-f761d583b579e4bdfe3013b52a46a76a8f31abf8.zip
pcm/Traits: use int_leastX_t types
Diffstat (limited to '')
-rw-r--r--src/pcm/Traits.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pcm/Traits.hxx b/src/pcm/Traits.hxx
index df2e7978f..7212b2dd6 100644
--- a/src/pcm/Traits.hxx
+++ b/src/pcm/Traits.hxx
@@ -55,7 +55,7 @@ struct SampleTraits<SampleFormat::S8> {
* arithmetic without risking an (integer) overflow or
* (floating point) precision loss.
*/
- typedef int long_type;
+ typedef int_least16_t long_type;
/**
* The size of one sample in bytes.
@@ -75,7 +75,7 @@ struct SampleTraits<SampleFormat::S16> {
typedef value_type *pointer_type;
typedef const value_type *const_pointer_type;
- typedef int long_type;
+ typedef int_least32_t long_type;
static constexpr size_t SAMPLE_SIZE = sizeof(value_type);
static constexpr unsigned BITS = sizeof(value_type) * 8;
@@ -87,7 +87,7 @@ struct SampleTraits<SampleFormat::S32> {
typedef value_type *pointer_type;
typedef const value_type *const_pointer_type;
- typedef int64_t long_type;
+ typedef int_least64_t long_type;
static constexpr size_t SAMPLE_SIZE = sizeof(value_type);
static constexpr unsigned BITS = sizeof(value_type) * 8;
@@ -99,7 +99,7 @@ struct SampleTraits<SampleFormat::S24_P32> {
typedef value_type *pointer_type;
typedef const value_type *const_pointer_type;
- typedef int64_t long_type;
+ typedef int_least64_t long_type;
static constexpr size_t SAMPLE_SIZE = sizeof(value_type);
static constexpr unsigned BITS = 24;