]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/layout.h
Use size_t to represent counts and indices
[libs/gltk.git] / source / layout.h
index 14def25e718bc83e00f28d975ad4b08ba7945c29..2e58505881c351856c0bc0aedc015da5a984f439 100644 (file)
@@ -174,8 +174,8 @@ private:
 
        Container *container = nullptr;
        std::vector<Slot *> slots;
-       unsigned n_active_slots = 0;
-       unsigned n_slack_vars[2] = { 0, 0 };
+       std::size_t n_active_slots = 0;
+       std::size_t n_slack_vars[2] = { 0, 0 };
        Sides margin{ 8 };
        unsigned row_spacing = 5;
        unsigned col_spacing = 4;