Skip to content

ptrdiff_t / size_t data types issue? (and long / ulong)Β #1853

@SuRGeoNix

Description

@SuRGeoNix

In my case it looks in vcruntime.h which includes:

#ifdef _WIN64
    typedef unsigned __int64 size_t;
    typedef __int64          ptrdiff_t;
    typedef __int64          intptr_t;
#else
    typedef unsigned int     size_t;
    typedef int              ptrdiff_t;
    typedef int              intptr_t;
#endif

and it gives me a qualified type (in x64 win case) LongLong which is wrong it should be IntPtr / nint?

Similarly for size_t it should be nuint and for long/ulong to use CLong / CULong.

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