mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Data::getSize now uses size_t instead of int
This commit is contained in:
@@ -38,9 +38,9 @@ ImageData::~ImageData()
|
||||
delete mutex;
|
||||
}
|
||||
|
||||
int ImageData::getSize() const
|
||||
size_t ImageData::getSize() const
|
||||
{
|
||||
return getWidth()*getHeight()*sizeof(pixel);
|
||||
return size_t(getWidth()*getHeight())*sizeof(pixel);
|
||||
}
|
||||
|
||||
void *ImageData::getData() const
|
||||
|
||||
Reference in New Issue
Block a user