diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-19 08:03:46 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-19 08:03:46 +0200 |
commit | 49b6de46afac29898d47c1f38f1ad0b57ea041af (patch) | |
tree | 60b9b8e55bb7f79e4cf84a95bc8689b37790e0b7 /build2/variable | |
parent | ba9137db8e456eb00b921a855e5383b78fa7a8ec (diff) |
Fix typification bug in variable_cache
Diffstat (limited to 'build2/variable')
-rw-r--r-- | build2/variable | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build2/variable b/build2/variable index ea1912a..be3b478 100644 --- a/build2/variable +++ b/build2/variable @@ -1208,10 +1208,11 @@ namespace build2 { public: // If the returned unique lock is locked, then the value has been - // invalidated. + // invalidated. If the variable type does not match the value type, + // then typify the cached value. // pair<value&, ulock> - insert (K, const lookup& stem, size_t version); + insert (K, const lookup& stem, size_t version, const variable&); private: struct entry_type |