Skip to content

Commit

Permalink
Removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Apr 19, 2023
1 parent 7c55b41 commit dcca41f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sexp-output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ sexp_output_stream_t *sexp_output_stream_t::print_decimal(uint64_t n)
{
char buffer[20]; // 64*ln(2)/ln(10)
// since itoa is not a part of any standard
snprintf(buffer, sizeof(buffer) / sizeof(buffer[0]), "%" PRIu64, n);
snprintf(buffer, sizeof(buffer) / sizeof(buffer[0]), "%" PRIu64, n);
for (uint32_t i = 0; buffer[i] != 0; i++)
var_put_char(buffer[i]);
return this;
Expand Down
3 changes: 1 addition & 2 deletions tests/src/baseline-tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ class BaselineTests : public testing::Test {
static const uint32_t base_sample_canonical = 2;
static const uint32_t n_base_samples = base_sample_canonical + 1;

static const uint32_t was_set_upbase_sample_advanced = 0;
static std::string base_samples[n_base_samples];
static std::string base_samples[n_base_samples];

BaselineTests()
{
Expand Down

0 comments on commit dcca41f

Please sign in to comment.