Skip to content

libexpr: Fix tests on 32 bit systems#14668

Merged
Ericson2314 merged 1 commit intomasterfrom
fix-i686-expr-tests
Nov 28, 2025
Merged

libexpr: Fix tests on 32 bit systems#14668
Ericson2314 merged 1 commit intomasterfrom
fix-i686-expr-tests

Conversation

@xokdvium
Copy link
Contributor

Motivation

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.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

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.
@xokdvium xokdvium requested a review from Radvendii November 27, 2025 21:42
@xokdvium xokdvium requested a review from edolstra as a code owner November 27, 2025 21:42
@github-actions github-actions bot added the c api Nix as a C library with a stable interface label Nov 27, 2025
@Ericson2314 Ericson2314 added this pull request to the merge queue Nov 28, 2025
Merged via the queue into master with commit 048a58d Nov 28, 2025
24 of 31 checks passed
@Ericson2314 Ericson2314 deleted the fix-i686-expr-tests branch November 28, 2025 03:16
@edolstra edolstra mentioned this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c api Nix as a C library with a stable interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants