From 5d4a9d56777d8139705a920c79c77142b40a6d07 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 30 May 2018 17:47:30 +0200 Subject: [PATCH] Fix static assertion failure on 32-bit systems --- src/libexpr/eval.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index a3f411a5f..517952164 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -307,7 +307,7 @@ EvalState::EvalState(const Strings & _searchPath, ref 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) {