13
0

fix signed/unsigned warning

This commit is contained in:
Paul Davis 2022-06-21 17:31:50 -06:00
parent dc4235efbe
commit cd4549aff7
2 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@
#ifdef HAVE_WAFBUILD
#include "libpbd-config.h"
#endif
#include <cstddef>
#include <iostream>
#include <ostream>
@ -40,7 +41,7 @@
namespace PBD {
LIBPBD_API void stacktrace (std::ostream& out, int levels = 0, int start_level = 0);
LIBPBD_API void stacktrace (std::ostream& out, int levels = 0, size_t start_level = 0);
LIBPBD_API void trace_twb();
template<typename T>

View File

@ -49,7 +49,7 @@ PBD::trace_twb ()
#include <execinfo.h>
void
PBD::stacktrace (std::ostream& out, int levels, int start)
PBD::stacktrace (std::ostream& out, int levels, size_t start)
{
void *array[200];
size_t size;