mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 17:59:12 +00:00
Fixed pointer implicit conversion error.
This commit is contained in:
parent
217d6cf1f1
commit
2c2c1745ed
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue