about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-05-30T15·47+0200
committerEelco Dolstra <edolstra@gmail.com>2018-05-30T15·47+0200
commit5d4a9d56777d8139705a920c79c77142b40a6d07 (patch)
treee27430faabb6f337de6190c146b77519d505d6d6 /src/libexpr
parent7c3c635d4fa27a36fcba239b7cb980bab06ce482 (diff)
Fix static assertion failure on 32-bit systems
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/eval.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index a3f411a5fb1d..517952164a97 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -307,7 +307,7 @@ EvalState::EvalState(const Strings & _searchPath, ref<Store> store)
 
     assert(gcInitialised);
 
-    static_assert(sizeof(Env) == 16, "environment must be 16 bytes");
+    static_assert(sizeof(Env) <= 16, "environment must be <= 16 bytes");
 
     /* Initialise the Nix expression search path. */
     if (!evalSettings.pureEval) {