Skip to content

Commit 5b1142e

Browse files
NathanMorleyfoonathan
authored andcommitted
static_cast of the __LINE__ macro to unsigned type for instances where __LINE__ might be of long type. (#8)
1 parent 4de9db2 commit 5b1142e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

debug_assert.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ namespace debug_assert
101101
#define DEBUG_ASSERT_CUR_SOURCE_LOCATION \
102102
debug_assert::source_location \
103103
{ \
104-
__FILE__, __LINE__ \
104+
__FILE__, static_cast<unsigned>(__LINE__) \
105105
}
106106

107107
//=== level ===//

0 commit comments

Comments
 (0)