aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-11-24 11:31:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-11-24 11:31:57 +0200
commit46875f55245e554fb6fe23317eb748719b9f546f (patch)
tree090acee3f3a7c9b6f81dc5d6ec80588336ed89ba
parentc45cb2f3678e53a4bdcb434f4b7c47d85ca88895 (diff)
Fix compilation error on older compilers (GCC 4.9, MSVC 14.3)
-rw-r--r--libbuild2/cc/link-rule.hxx8
1 files changed, 4 insertions, 4 deletions
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<appended_library, 128>