Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SuRGeoNix opened this issue Jul 6, 2024 · 2 comments
Open

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

SuRGeoNix opened this issue Jul 6, 2024 · 2 comments

Comments

@SuRGeoNix
Copy link

SuRGeoNix commented Jul 6, 2024

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.

@SuRGeoNix SuRGeoNix changed the title ptrdiff_t data type issue? ptrdiff_t / size_t data types issue? (and long / ulong) Jul 7, 2024
@tritao
Copy link
Collaborator

tritao commented Jul 26, 2024

Looks like I missed this issue previously, did you made any progress in figuring out your issue?

@SuRGeoNix
Copy link
Author

@tritao I manually changing the types for now, just thought that this should be handle at lower level from CppSharp?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants