diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-08-19 12:35:03 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-08-19 12:35:03 +0200 |
commit | d308aeaf53b7324af98dfa949a747526c241ef30 (patch) | |
tree | acae7f07b45d26007e8a6bbc3d6c8bfa1bf5e34c /src/libexpr/primops.cc | |
parent | 297b762513ad416582c0850095506f802ff5b1bb (diff) |
Store Nix integers as longs
So on 64-bit systems, integers are now 64-bit.
Fixes #158.
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r-- | src/libexpr/primops.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 149c7ca39..deb66fd69 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -1024,7 +1024,7 @@ static void prim_mul(EvalState & state, Value * * args, Value & v) static void prim_div(EvalState & state, Value * * args, Value & v) { - int i2 = state.forceInt(*args[1]); + NixInt i2 = state.forceInt(*args[1]); if (i2 == 0) throw EvalError("division by zero"); mkInt(v, state.forceInt(*args[0]) / i2); } |