mirror of
https://github.com/NixOS/nix.git
synced 2025-12-14 21:11:04 +01:00
libexpr: Fix tests on 32 bit systems
This test is now pointless and the comment is outdated. Also the test fails
on 32 bit systems with:
../nix_api_value_internal.cc:22: Failure
Expected equality of these values:
sizeof(nix::Value)
Which is: 12
sizeof(nix_value)
Which is: 8
It just happeneded to work because Value is 16 bytes and nix_value was also 16 bytes.
Also get rid of a pointless inline in new_nix_value, since it's already static and
inline there does nothing.
This commit is contained in:
parent
11b0fcd6cd
commit
7dfad3dba7
2 changed files with 1 additions and 9 deletions
|
|
@ -58,7 +58,7 @@ static nix::Value & check_value_out(nix_value * value)
|
|||
return v;
|
||||
}
|
||||
|
||||
static inline nix_value * new_nix_value(nix::Value * v, nix::EvalMemory & mem)
|
||||
static nix_value * new_nix_value(nix::Value * v, nix::EvalMemory & mem)
|
||||
{
|
||||
nix_value * ret = new (mem.allocBytes(sizeof(nix_value))) nix_value{
|
||||
.value = v,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue