From ce2133a17f774c5baee36086cdd754cd094e91af Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 3 Feb 2022 07:02:25 +0200 Subject: [PATCH] sprintf line() and column() as unsigned long --- include/boost/assert/source_location.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/assert/source_location.hpp b/include/boost/assert/source_location.hpp index 0977f67..2de4594 100644 --- a/include/boost/assert/source_location.hpp +++ b/include/boost/assert/source_location.hpp @@ -72,12 +72,12 @@ public: char buffer[ 16 ]; - std::sprintf( buffer, ":%ld", static_cast( line() ) ); + std::sprintf( buffer, ":%lu", static_cast( line() ) ); r += buffer; if( column() ) { - std::sprintf( buffer, ":%ld", static_cast( column() ) ); + std::sprintf( buffer, ":%lu", static_cast( column() ) ); r += buffer; }