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

ExportImageToMemory uses wrong return type #244

Closed
3 tasks done
danilwhale opened this issue May 24, 2024 · 1 comment
Closed
3 tasks done

ExportImageToMemory uses wrong return type #244

danilwhale opened this issue May 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@danilwhale
Copy link
Contributor

Before submitting a new issue, please verify and check:

  • The issue is specific to Raylib-cs and not raylib
  • I checked there is no similar issue already reported
  • My code has no errors or misuse of Raylib-cs

Issue description

Original declaration looks like:

RLAPI unsigned char *ExportImageToMemory(Image image, const char *fileType, int *fileSize);

where unsigned char * should be byte* and not char*, because C char is equal to C# sbyte and unsigned char is equal to byte
https://github.com/ChrisDill/Raylib-cs/blob/502a583e076cf1595a12def81206be7f804002e5/Raylib-cs/interop/Raylib.cs#L1371

@chrisdill
Copy link
Owner

Thanks, fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants