Skip to content

Building with clang-16 error -Wenum-constexpr-conversion #1198

@ammarfaizi2

Description

@ammarfaizi2

Hi,

Building with clang-16 error -Wenum-constexpr-conversion:

napi.h:1173:7: error: integer value -1 is outside the valid range of values [0, 15] for this enumeration type [-Wenum-constexpr-conversion]
      static_cast<napi_typedarray_type>(-1);
      ^
1 error generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions