Watch
2
0
Fork
You've already forked raylib-cs
0

Fix usage of uint in bindings (#246)

This commit is contained in:
Rgebee 2024-05-25 10:34:38 +01:00 committed by GitHub
commit 383ec91e95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 36 additions and 36 deletions

View file

@ -44,7 +44,7 @@ public class RawData
int height = 480;
// Store pixel data
Color* pixels = (Color*)Raylib.MemAlloc(width * height * sizeof(Color));
Color* pixels = (Color*)Raylib.MemAlloc((uint)(width * height * sizeof(Color)));
for (int y = 0; y < height; y++)
{
for (int x = 0; x < width; x++)