about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-08-12T00·35+0100
committertazjin <mail@tazj.in>2020-08-13T01·39+0000
commite38015f7b55a9873b60113d499b150ddceb165e6 (patch)
tree96ae1ee99973bfd2c05b5110e0bb9b6390b4fa2c /third_party
parentc9d5262aa7b093befe16b14bca74cb8f3914d299 (diff)
refactor(tvix): Very minor lint fixes r/1642
Change-Id: I4aca504d98c79f931b7faadff86f40d27ed5a2c5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1719
Tested-by: BuildkiteCI
Reviewed-by: kanepyork <rikingcoding@gmail.com>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/nix/src/libexpr/eval.cc3
-rw-r--r--third_party/nix/src/libexpr/value.hh4
2 files changed, 4 insertions, 3 deletions
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 <algorithm>
 #include <chrono>
+#include <cstdint>
 #include <cstring>
 #include <fstream>
 #include <iostream>
@@ -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;