Skip to content

Commit

Permalink
Unsigned -> signed comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
sadko4u committed Sep 1, 2019
1 parent c07e3ea commit 926c0dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions include/container/vst/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -1140,8 +1140,7 @@ namespace lsp
if (res == STATUS_OK)
{
lsp_warn("Found standard VST 2.x chunk header");
size_t ck_size = BE_TO_CPU(bank->byteSize) + 2 * sizeof(VstInt32);
dump_vst_bank(bank, ck_size);
dump_vst_bank(bank, (BE_TO_CPU(bank->byteSize) + 2 * sizeof(VstInt32)));

// Check the version
VstInt32 fxVersion = BE_TO_CPU(bank->fxVersion);
Expand Down
4 changes: 2 additions & 2 deletions include/core/util/Analyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace lsp
{
float *vBuffer; // FFT buffer
float *vAmp; // FFT amplitude
size_t nCounter; // FFT trigger counter
ssize_t nCounter; // FFT trigger counter
bool bFreeze; // Freeze analysis
bool bActive; // Enable analysis
} channel_t;
Expand All @@ -64,7 +64,7 @@ namespace lsp
size_t nRank;
size_t nSampleRate;
size_t nBufSize;
size_t nFftPeriod;
ssize_t nFftPeriod;
float fReactivity;
float fTau;
float fRate;
Expand Down

0 comments on commit 926c0dd

Please sign in to comment.