bombela / backward-cpp

A beautiful stack trace pretty printer for C++
MIT License
3.68k stars 467 forks source link

Explicitly cast `line` and `col` variabiles to `unsigned`. #264

Closed ITHackerstein closed 2 years ago

ITHackerstein commented 2 years ago

Explicitly cast line and col variabiles to unsigned to avoid -Wsign-conversion (warnings or errors if -Werror is enabled). This avoids unnecessary wrapper header files around backward.hpp to ignore this type of warnings or disable the warning everywhere which could be unsafe in some cases.