Skip to content

Commit d23e664

Browse files
committed
Fixed integer type compare mismatches
1 parent af258a2 commit d23e664

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

CMakeSettings.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@
1010
"cmakeCommandArgs": "",
1111
"buildCommandArgs": "",
1212
"ctestCommandArgs": ""
13+
},
14+
{
15+
"name": "x86-Release",
16+
"generator": "Ninja",
17+
"configurationType": "RelWithDebInfo",
18+
"buildRoot": "${projectDir}\\out\\build\\${name}",
19+
"installRoot": "${projectDir}\\out\\install\\${name}",
20+
"cmakeCommandArgs": "",
21+
"buildCommandArgs": "",
22+
"ctestCommandArgs": "",
23+
"inheritEnvironments": [ "msvc_x86" ],
24+
"variables": []
1325
}
1426
]
1527
}

include/templates/r136.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ BoundedCollection<TEntity>::BoundedCollection(int capacity) :
2525
template<class TEntity>
2626
bool BoundedCollection<TEntity>::is_full() const
2727
{
28-
return items.size() >= max_item_count;
28+
return items.size() >= (unsigned)max_item_count;
2929
}
3030

3131
template<class TEntity>

src/init.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void fill_map(EntityMap<TKey, TValue>& map, std::vector<TValue*> values)
231231

232232
map.clear();
233233

234-
for (int i = 0; i < values.size(); i++)
234+
for (size_t i = 0; i < values.size(); i++)
235235
{
236236
values[i]->id = static_cast<TKey>(i);
237237
map.add_or_set(values[i]);
@@ -264,7 +264,7 @@ void initialize(CoreData& core)
264264
bool set_room_connections(std::vector<Room*> rooms)
265265
{
266266
// Interconnect rooms with neighbours
267-
for (int i = 0; i < rooms.size(); i++)
267+
for (size_t i = 0; i < rooms.size(); i++)
268268
{
269269
Room& room = *rooms[i];
270270
room.connections.clear();

0 commit comments

Comments
 (0)