Skip to content

Value-like macro using UINT64_MAX generates nuint type incorrectly on Unix #835

Description

@Happypig375

#757 seems to not have fixed the following case:

#include <stdint.h>
#define B3_DEFAULT_CATEGORY_BITS UINT64_MAX
#define B3_DEFAULT_MASK_BITS UINT64_MAX

with -g macro-bindings, this generates

    [NativeTypeName("#define B3_DEFAULT_CATEGORY_BITS UINT64_MAX")]
    public const ulong B3_DEFAULT_CATEGORY_BITS = 0xffffffffffffffffUL;

    [NativeTypeName("#define B3_DEFAULT_MASK_BITS UINT64_MAX")]
    public const ulong B3_DEFAULT_MASK_BITS = 0xffffffffffffffffUL;

on Windows but nuint type on Unix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions