Browse Source

Fix a compiler warning

Signed-off-by: falkTX <falktx@falktx.com>
tags/2020-07-14
falkTX 4 years ago
parent
commit
697358a41b
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      ports/easySSP/source/dsp-utility/FrequencyDomainGrid.h

+ 5
- 5
ports/easySSP/source/dsp-utility/FrequencyDomainGrid.h View File

@@ -354,7 +354,7 @@ namespace tomatl{ namespace dsp{
static std::wstring freqToExtendedString(const double& freq)
{
wchar_t buffer[50];
memset(&buffer, 0x0, 50);
memset(&buffer, 0x0, sizeof(wchar_t)*50);
swprintf(buffer, 50, L"%.0fHz", freq);
@@ -364,7 +364,7 @@ namespace tomatl{ namespace dsp{
static std::wstring dbToExtendedString(const double & ampl)
{
wchar_t buffer[50];
memset(&buffer, 0x0, 50);
memset(&buffer, 0x0, sizeof(wchar_t)*50);
swprintf(buffer, 50, L"%.2fdB", ampl);
@@ -374,7 +374,7 @@ namespace tomatl{ namespace dsp{
static std::wstring freqToString(const double& freq)
{
wchar_t buffer[50];
memset(&buffer, 0x0, 50);
memset(&buffer, 0x0, sizeof(wchar_t)*50);
if (freq >= 1000)
{
@@ -391,7 +391,7 @@ namespace tomatl{ namespace dsp{
static std::wstring dbToString(const double& ampl)
{
wchar_t buffer[50];
memset(&buffer, 0x0, 50);
memset(&buffer, 0x0, sizeof(wchar_t)*50);
swprintf(buffer, 50, L"%+d", (int)ampl);
@@ -421,4 +421,4 @@ namespace tomatl{ namespace dsp{
};*/
}}
#endif
#endif

Loading…
Cancel
Save