diff options
author | David Robillard <d@drobilla.net> | 2024-07-17 11:33:25 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-07-17 12:30:47 -0400 |
commit | 175c04323ad1aaaa1e0c949b8de411d5e2cece74 (patch) | |
tree | ac359693858f9ba2e619f2d9fc9b809af637a82e /src/server/BufferFactory.cpp | |
parent | 973db12fe33bab8e6efca80deca358b4998d5eb2 (diff) | |
download | ingen-175c04323ad1aaaa1e0c949b8de411d5e2cece74.tar.gz ingen-175c04323ad1aaaa1e0c949b8de411d5e2cece74.tar.bz2 ingen-175c04323ad1aaaa1e0c949b8de411d5e2cece74.zip |
Avoid C-style casts and some size type conversions
Aside from the syntactic cast changes, reduces some size types to 32-bits,
since they can never be so large in practice. This eliminates some type
conversions and shaves a few bytes.
Diffstat (limited to 'src/server/BufferFactory.cpp')
-rw-r--r-- | src/server/BufferFactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/BufferFactory.cpp b/src/server/BufferFactory.cpp index 1afbf93f..0df5a025 100644 --- a/src/server/BufferFactory.cpp +++ b/src/server/BufferFactory.cpp @@ -109,7 +109,7 @@ BufferFactory::default_size(LV2_URID type) const } if (type == _uris.atom_Sequence) { - if (_seq_size == 0) { + if (_seq_size == 0U) { return _engine.sequence_size(); } |