about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-07-11T19·12+0200
committerEelco Dolstra <edolstra@gmail.com>2018-07-11T19·12+0200
commitc2de2ff385a7eed2cb5853d7fde203a6394698ea (patch)
tree75717326ca72218c681f87cfde55ac04d7cbfb3a /src
parentefd04888cad18b76729b39294224ca547d074846 (diff)
Fix build on 32-bit systems and macOS
Apparently, on macOS, 'long' != 'int64_t'.

https://hydra.nixos.org/build/77100756
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops/fromTOML.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fromTOML.cc b/src/libexpr/primops/fromTOML.cc
index 12e5de08e51d..4128de05d0cf 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<NixInt>())
+            if (auto val = t->as<int64_t>())
                 mkInt(v, val->get());
             else if (auto val = t->as<NixFloat>())
                 mkFloat(v, val->get());