srctree

Robin Linden parent 33867ded 137ac89d
all: Fix loop variables having a narrower type than upper bound

inlinesplit
dom/dom.cpp added: 5, removed: 5, total 0
@@ -15,7 +15,7 @@ namespace dom {
namespace {
 
void print_node(dom::Node const &node, std::ostream &os, uint8_t depth = 0) {
for (int8_t i = 0; i < depth; ++i) {
for (std::uint8_t i = 0; i < depth; ++i) {
os << " ";
}
std::visit(util::Overloaded{
 
layout/layout.cpp added: 5, removed: 5, total 0
@@ -324,13 +324,13 @@ std::string to_str(geom::EdgeSize const &edge) {
}
 
void print_box(LayoutBox const &box, std::ostream &os, uint8_t depth = 0) {
for (int8_t i = 0; i < depth; ++i) {
for (std::uint8_t i = 0; i < depth; ++i) {
os << " ";
}
 
if (box.node != nullptr) {
os << to_str(box.node->node) << '\n';
for (int8_t i = 0; i < depth; ++i) {
for (std::uint8_t i = 0; i < depth; ++i) {
os << " ";
}
}