aboutsummaryrefslogtreecommitdiffstats
path: root/src/atrac
diff options
context:
space:
mode:
authorDaniil Cheredni <dan.cherednik@gmail.com>2024-10-21 21:53:55 +0200
committerDaniil Cherednik <dan.cherednik@gmail.com>2024-11-01 18:21:42 +0100
commitd459470e2d8c1cdfc633584b277505ef03565ab1 (patch)
treeaf7676bd204836e357c1034a8138ce7f472db47c /src/atrac
parentfe377370c1ae4691a65270123345f225e3159ed8 (diff)
downloadatracdenc-d459470e2d8c1cdfc633584b277505ef03565ab1.tar.gz
Do not use 8bit, 16bit types if do not realy need it.
Diffstat (limited to 'src/atrac')
-rw-r--r--src/atrac/atrac3_bitstream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/atrac/atrac3_bitstream.cpp b/src/atrac/atrac3_bitstream.cpp
index 78ecaac..3b8337d 100644
--- a/src/atrac/atrac3_bitstream.cpp
+++ b/src/atrac/atrac3_bitstream.cpp
@@ -345,7 +345,7 @@ uint16_t TAtrac3BitStreamWriter::EncodeTonalComponents(const TSingleChannelEleme
uint8_t tcgnCheck = 0;
//for each group of equal quantiser and len
- for (uint8_t i = 0; i < 64; ++i) {
+ for (size_t i = 0; i < 64; ++i) {
const TTonalComponentsSubGroup& curGroup = groups[i];
if (curGroup.SubGroupPtr.size() == 0) {
ASSERT(curGroup.SubGroupMap.size() == 0);
@@ -398,7 +398,7 @@ uint16_t TAtrac3BitStreamWriter::EncodeTonalComponents(const TSingleChannelEleme
bitStream->Write(i >> 3, 3);
uint8_t lastPos = subGroupStartPos;
uint8_t checkPos = 0;
- for (uint16_t j = 0; j < 16; ++j) {
+ for (size_t j = 0; j < 16; ++j) {
if (!(bandFlags.i[j >> 2])) {
continue;
}