Skip to content

Commit

Permalink
AK: Some more int => size_t in Bitmap
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Feb 25, 2020
1 parent fbe4081 commit 960cae9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AK/Bitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ class Bitmap {
AK_MAKE_NONCOPYABLE(Bitmap)
public:
// NOTE: A wrapping Bitmap won't try to free the wrapped data.
static Bitmap wrap(u8* data, int size)
static Bitmap wrap(u8* data, size_t size)
{
return Bitmap(data, size);
}

static Bitmap create(int size, bool default_value = 0)
static Bitmap create(size_t size, bool default_value = 0)
{
return Bitmap(size, default_value);
}
Expand Down Expand Up @@ -215,7 +215,7 @@ class Bitmap {
fill(default_value);
}

Bitmap(u8* data, int size)
Bitmap(u8* data, size_t size)
: m_data(data)
, m_size(size)
, m_owned(false)
Expand Down

0 comments on commit 960cae9

Please sign in to comment.