From 46875f55245e554fb6fe23317eb748719b9f546f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 24 Nov 2020 11:31:57 +0200 Subject: Fix compilation error on older compilers (GCC 4.9, MSVC 14.3) --- libbuild2/cc/link-rule.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libbuild2') diff --git a/libbuild2/cc/link-rule.hxx b/libbuild2/cc/link-rule.hxx index b369da6..b192914 100644 --- a/libbuild2/cc/link-rule.hxx +++ b/libbuild2/cc/link-rule.hxx @@ -58,10 +58,10 @@ namespace build2 { static const size_t npos = size_t (~0); - uintptr_t l; // Pointer to library target (last bit 0) or to - // library name (-lpthread or path; last bit 1). - size_t begin = npos; // First arg belonging to this library. - size_t end = npos; // Past last arg belonging to this library. + uintptr_t l; // Pointer to library target (last bit 0) or to + // library name (-lpthread or path; last bit 1). + size_t begin; // First arg belonging to this library. + size_t end; // Past last arg belonging to this library. }; class appended_libraries: public small_vector -- cgit v1.1