forked from lix-project/lix
Fix build on 32-bit systems and macOS
Apparently, on macOS, 'long' != 'int64_t'. https://hydra.nixos.org/build/77100756
This commit is contained in:
parent
efd04888ca
commit
c2de2ff385
|
@ -50,7 +50,7 @@ static void prim_fromTOML(EvalState & state, const Pos & pos, Value * * args, Va
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (t->is_value()) {
|
else if (t->is_value()) {
|
||||||
if (auto val = t->as<NixInt>())
|
if (auto val = t->as<int64_t>())
|
||||||
mkInt(v, val->get());
|
mkInt(v, val->get());
|
||||||
else if (auto val = t->as<NixFloat>())
|
else if (auto val = t->as<NixFloat>())
|
||||||
mkFloat(v, val->get());
|
mkFloat(v, val->get());
|
||||||
|
|
Loading…
Reference in a new issue