diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-03-09 01:23:22 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-03-09 01:23:22 +0100 |
commit | 15d06abbc5a8752631288441131b3ebf9124f25b (patch) | |
tree | 883387e6a1e835572c65145d58ccf0d42886c0aa /src/Body.cpp | |
parent | a26d0fcc0a30a28ce0e458ea275fc0787c693bc6 (diff) |
Fix compile on clang
Diffstat (limited to 'src/Body.cpp')
-rw-r--r-- | src/Body.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Body.cpp b/src/Body.cpp index 1c436f5..dbcaab0 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -1484,7 +1484,7 @@ namespace QuickMedia { item_pos.y += body_spacing[body_theme].reaction_padding_y; float reaction_max_height = 0.0f; // TODO: Fix first row wrap-around - for(int i = 0; i < item->reactions.size(); ++i) { + for(int i = 0; i < (int)item->reactions.size(); ++i) { auto &reaction = item->reactions[i]; reaction.text->updateGeometry(); reaction_max_height = std::max(reaction_max_height, reaction.text->getHeight()); @@ -1704,7 +1704,7 @@ namespace QuickMedia { float reaction_offset_x = 0.0f; item_height += body_spacing[body_theme].reaction_padding_y; float reaction_max_height = 0.0f; - for(int i = 0; i < item->reactions.size(); ++i) { + for(int i = 0; i < (int)item->reactions.size(); ++i) { auto &reaction = item->reactions[i]; reaction.text->setMaxWidth(text_max_width); reaction.text->updateGeometry(); |