From e38015f7b55a9873b60113d499b150ddceb165e6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 12 Aug 2020 01:35:08 +0100 Subject: refactor(tvix): Very minor lint fixes Change-Id: I4aca504d98c79f931b7faadff86f40d27ed5a2c5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1719 Tested-by: BuildkiteCI Reviewed-by: kanepyork --- third_party/nix/src/libexpr/eval.cc | 3 ++- third_party/nix/src/libexpr/value.hh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'third_party/nix/src') diff --git a/third_party/nix/src/libexpr/eval.cc b/third_party/nix/src/libexpr/eval.cc index 4064f1594f00..4b848d054c2b 100644 --- a/third_party/nix/src/libexpr/eval.cc +++ b/third_party/nix/src/libexpr/eval.cc @@ -2,6 +2,7 @@ #include #include +#include #include #include #include @@ -903,7 +904,7 @@ static std::string showAttrPath(EvalState& state, Env& env, return out.str(); } -unsigned long nrLookups = 0; +uint64_t nrLookups = 0; void ExprSelect::eval(EvalState& state, Env& env, Value& v) { Value vTmp; diff --git a/third_party/nix/src/libexpr/value.hh b/third_party/nix/src/libexpr/value.hh index bb151b0f308b..df6563cf1cd3 100644 --- a/third_party/nix/src/libexpr/value.hh +++ b/third_party/nix/src/libexpr/value.hh @@ -11,7 +11,7 @@ namespace nix { -typedef enum { +using ValueType = enum { tInt = 1, tBool, tString, @@ -27,7 +27,7 @@ typedef enum { tPrimOpApp, _reserved1, // formerly tExternal tFloat -} ValueType; +}; class Bindings; struct Env; -- cgit 1.4.1