mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-26 04:02:27 +00:00
LibGfx: Remove unnecessary casts
This commit is contained in:
parent
76cbfe1c38
commit
4cb765e520
Notes:
sideshowbarker
2024-07-19 07:18:22 +09:00
Author: https://github.com/peterdn
Commit: 4cb765e520
Pull-request: https://github.com/SerenityOS/serenity/pull/1950
1 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ public:
|
||||||
const u16 control_code = m_code_table.size();
|
const u16 control_code = m_code_table.size();
|
||||||
m_code_table.append({ {}, control_code });
|
m_code_table.append({ {}, control_code });
|
||||||
m_original_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_code_size;
|
||||||
++m_original_code_size;
|
++m_original_code_size;
|
||||||
}
|
}
|
||||||
|
@ -220,7 +220,7 @@ private:
|
||||||
{
|
{
|
||||||
if (entry.size() > 1 && m_code_table.size() < 4096) {
|
if (entry.size() > 1 && m_code_table.size() < 4096) {
|
||||||
m_code_table.append({ entry, (u16)m_code_table.size() });
|
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;
|
++m_code_size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue