Skip to content

Commit f091bbd

Browse files
committedMay 8, 2015
Fix compilation for non-client builds, and fix signed comparison warning
1 parent 2dba29e commit f091bbd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

Diff for: ‎src/nodedef.h

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2525
#include <iostream>
2626
#include <map>
2727
#include <list>
28+
#include "util/numeric.h"
2829
#include "mapnode.h"
2930
#ifndef SERVER
3031
#include "client/tile.h"

Diff for: ‎src/unittest/test_schematic.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void TestSchematic::testMtsSerializeDeserialize(INodeDefManager *ndef)
7979
schem.slice_probs = new u8[size.Y];
8080
for (size_t i = 0; i != volume; i++)
8181
schem.schemdata[i] = MapNode(test_schem_data[i], MTSCHEM_PROB_ALWAYS, 0);
82-
for (size_t y = 0; y != size.Y; y++)
82+
for (s16 y = 0; y != size.Y; y++)
8383
schem.slice_probs[y] = MTSCHEM_PROB_ALWAYS;
8484

8585
UASSERT(schem.serializeToMts(&ss, names));
@@ -116,7 +116,7 @@ void TestSchematic::testLuaTableSerialize(INodeDefManager *ndef)
116116
schem.slice_probs = new u8[size.Y];
117117
for (size_t i = 0; i != volume; i++)
118118
schem.schemdata[i] = MapNode(test_schem_data2[i], MTSCHEM_PROB_ALWAYS, 0);
119-
for (size_t y = 0; y != size.Y; y++)
119+
for (s16 y = 0; y != size.Y; y++)
120120
schem.slice_probs[y] = MTSCHEM_PROB_ALWAYS;
121121

122122
std::vector<std::string> names;

0 commit comments

Comments
 (0)