From c2de2ff385a7eed2cb5853d7fde203a6394698ea Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 11 Jul 2018 21:12:18 +0200 Subject: [PATCH] Fix build on 32-bit systems and macOS Apparently, on macOS, 'long' != 'int64_t'. https://hydra.nixos.org/build/77100756 --- src/libexpr/primops/fromTOML.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/primops/fromTOML.cc b/src/libexpr/primops/fromTOML.cc index 12e5de08e..4128de05d 100644 --- a/src/libexpr/primops/fromTOML.cc +++ b/src/libexpr/primops/fromTOML.cc @@ -50,7 +50,7 @@ static void prim_fromTOML(EvalState & state, const Pos & pos, Value * * args, Va } else if (t->is_value()) { - if (auto val = t->as()) + if (auto val = t->as()) mkInt(v, val->get()); else if (auto val = t->as()) mkFloat(v, val->get());