Skip to content

Commit

Permalink
fix: elim sign comparison in basedaemon (#4368)
Browse files Browse the repository at this point in the history
close #4372
  • Loading branch information
SchrodingerZhu authored Mar 22, 2022
1 parent 5c21a37 commit e919a61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dbms/src/Common/tests/gtest_stacktrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ GTEST_NO_INLINE_ void function_2(bool output = false, size_t level = 0)
{
function_1(output, level);
}
TEST(StacTrace, SingleThread)
TEST(StackTrace, SingleThread)
{
function_2(true);
function_2(true, 16);
}
TEST(StacTrace, MultiThreads)
TEST(StackTrace, MultiThreads)
{
size_t num = std::thread::hardware_concurrency();
std::vector<std::thread> threads{};
Expand Down
4 changes: 2 additions & 2 deletions libs/libdaemon/src/BaseDaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ class SignalListener : public Poco::Runnable
if (already_printed_stack_trace)
return;

static constexpr int max_frames = 50;
int frames_size = 0;
static constexpr size_t max_frames = 50;
size_t frames_size = 0;
void * frames[max_frames];

#if USE_UNWIND
Expand Down

0 comments on commit e919a61

Please sign in to comment.