Fixed pointer implicit conversion error.

This commit is contained in:
Xue Haonan 2024-10-08 11:00:06 +08:00
parent 217d6cf1f1
commit 2c2c1745ed

View File

@ -90,7 +90,7 @@ MMBitmapRef copyMMBitmapFromDisplayInRect(MMRectInt32 rect, int32_t display_id,
if (!imageData) { return NULL; }
bufferSize = CFDataGetLength(imageData);
buffer = malloc(bufferSize);
buffer = (uint8_t *)malloc(bufferSize);
CFDataGetBytes(imageData, CFRangeMake(0, bufferSize), buffer);
bitmap = createMMBitmap_c(buffer,