diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-22 22:51:21 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-22 22:51:21 +0200 |
commit | dc8817feeee1513bf1e33ba5d462c36b0c79f012 (patch) | |
tree | 6bd5d7e7d8b3a5c86a2e26041c64ee445b93912c /src/FurnaceRecipe.cpp | |
parent | Suggestions (diff) | |
parent | Fixed compile errors (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/FurnaceRecipe.cpp | 4 |
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) |