mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 19:38:12 +00:00
LibGfx: Remove unnecessary casts
This commit is contained in:
parent
76cbfe1c38
commit
4cb765e520
1 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ public:
|
|||
const u16 control_code = m_code_table.size();
|
||||
m_code_table.append({ {}, control_code });
|
||||
m_original_code_table.append({ {}, control_code });
|
||||
if ((int)m_code_table.size() >= pow(2, m_code_size) && m_code_size < 12) {
|
||||
if (m_code_table.size() >= pow(2, m_code_size) && m_code_size < 12) {
|
||||
++m_code_size;
|
||||
++m_original_code_size;
|
||||
}
|
||||
|
@ -220,7 +220,7 @@ private:
|
|||
{
|
||||
if (entry.size() > 1 && m_code_table.size() < 4096) {
|
||||
m_code_table.append({ entry, (u16)m_code_table.size() });
|
||||
if ((int)m_code_table.size() >= pow(2, m_code_size) && m_code_size < 12) {
|
||||
if (m_code_table.size() >= pow(2, m_code_size) && m_code_size < 12) {
|
||||
++m_code_size;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue