Skip to content

warning C4244 in newly added function 'utf8proc_charwidth_ambiguous' when updating to 2.10 #286

Open
@simonedi

Description

@simonedi

Hi,

I am updating utf8proc library from 2.9 to 2.10.
When I compile using Visual Studio 2022 17.10.10, I am facing a new warning in newly added function 'utf8proc_charwidth_ambiguous' of release 2.10.

utf8proc.c(436,34): warning C4244: 'return': conversion from 'const unsigned int' to 'utf8proc_bool', possible loss of data

This problem also occurs using Visual Studio 2022 17.12.4 and Visual Studio 2019 16.11.43.

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