summaryrefslogtreecommitdiffstats
path: root/src/FurnaceRecipe.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-22 22:51:21 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-22 22:51:21 +0200
commitdc8817feeee1513bf1e33ba5d462c36b0c79f012 (patch)
tree6bd5d7e7d8b3a5c86a2e26041c64ee445b93912c /src/FurnaceRecipe.cpp
parentSuggestions (diff)
parentFixed compile errors (diff)
downloadcuberite-dc8817feeee1513bf1e33ba5d462c36b0c79f012.tar
cuberite-dc8817feeee1513bf1e33ba5d462c36b0c79f012.tar.gz
cuberite-dc8817feeee1513bf1e33ba5d462c36b0c79f012.tar.bz2
cuberite-dc8817feeee1513bf1e33ba5d462c36b0c79f012.tar.lz
cuberite-dc8817feeee1513bf1e33ba5d462c36b0c79f012.tar.xz
cuberite-dc8817feeee1513bf1e33ba5d462c36b0c79f012.tar.zst
cuberite-dc8817feeee1513bf1e33ba5d462c36b0c79f012.zip
Diffstat (limited to 'src/FurnaceRecipe.cpp')
-rw-r--r--src/FurnaceRecipe.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FurnaceRecipe.cpp b/src/FurnaceRecipe.cpp
index 90b478285..d53854950 100644
--- a/src/FurnaceRecipe.cpp
+++ b/src/FurnaceRecipe.cpp
@@ -135,7 +135,7 @@ void cFurnaceRecipe::ReloadRecipes(void)
void cFurnaceRecipe::PrintParseError(unsigned int a_Line, size_t a_Position, const AString & a_CharactersMissing)
{
- LOGWARN("Error parsing furnace recipes at line %i pos %i: missing '%s'", a_Line, a_Position, a_CharactersMissing.c_str());
+ LOGWARN("Error parsing furnace recipes at line %i pos " SIZE_T_FMT ": missing '%s'", a_Line, a_Position, a_CharactersMissing.c_str());
}
@@ -179,7 +179,7 @@ bool cFurnaceRecipe::ReadMandatoryNumber(AString::size_type & a_Begin, const ASt
bool cFurnaceRecipe::ReadOptionalNumbers(AString::size_type & a_Begin, const AString & a_DelimiterOne, const AString & a_DelimiterTwo, const AString & a_Text, unsigned int a_Line, int & a_ValueOne, int & a_ValueTwo, bool a_IsLastValue)
{
// TODO: replace atoi with std::stoi
- unsigned int End, Begin = a_Begin;
+ AString::size_type End, Begin = a_Begin;
End = a_Text.find_first_of(a_DelimiterOne, Begin);
if (End != AString::npos)