diff options
author | Eli Kogan-Wang <elikowa@gmail.com> | 2022-05-16 15:17:35 +0200 |
---|---|---|
committer | Eli Kogan-Wang <elikowa@gmail.com> | 2022-05-16 15:17:35 +0200 |
commit | 27d0f6747d7e70be4b9ade28ce77444e6135cadb (patch) | |
tree | 9691eb0d1da309a33e0faec689fd26baed1d4d65 /src/libexpr/eval-cache.hh | |
parent | c81d24f1c70cc454c9a88cea70048d8563f60784 (diff) |
resolve redundant priority passing, wrap NixInt in eval-cache variant
Diffstat (limited to 'src/libexpr/eval-cache.hh')
-rw-r--r-- | src/libexpr/eval-cache.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/eval-cache.hh b/src/libexpr/eval-cache.hh index ec255c60d..68b5952eb 100644 --- a/src/libexpr/eval-cache.hh +++ b/src/libexpr/eval-cache.hh @@ -52,6 +52,7 @@ struct placeholder_t {}; struct missing_t {}; struct misc_t {}; struct failed_t {}; +struct int_t { NixInt x; int_t(NixInt x) : x(x) {}; }; typedef uint64_t AttrId; typedef std::pair<AttrId, Symbol> AttrKey; typedef std::pair<std::string, NixStringContext> string_t; @@ -64,7 +65,7 @@ typedef std::variant< misc_t, failed_t, bool, - NixInt, + int_t, std::vector<std::string> > AttrValue; |