diff options
author | worktycho <work.tycho@gmail.com> | 2014-06-22 13:30:37 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-06-22 13:30:37 +0200 |
commit | 63ce2e8b37444f96d7892d555cb296947b3afbe5 (patch) | |
tree | 223a34d744f70bb804d6ce828df2a9fbb368e071 /src | |
parent | Suggestions (diff) | |
download | cuberite-63ce2e8b37444f96d7892d555cb296947b3afbe5.tar cuberite-63ce2e8b37444f96d7892d555cb296947b3afbe5.tar.gz cuberite-63ce2e8b37444f96d7892d555cb296947b3afbe5.tar.bz2 cuberite-63ce2e8b37444f96d7892d555cb296947b3afbe5.tar.lz cuberite-63ce2e8b37444f96d7892d555cb296947b3afbe5.tar.xz cuberite-63ce2e8b37444f96d7892d555cb296947b3afbe5.tar.zst cuberite-63ce2e8b37444f96d7892d555cb296947b3afbe5.zip |
Diffstat (limited to 'src')
-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 448a4bfa8..8040552cc 100644 --- a/src/FurnaceRecipe.cpp +++ b/src/FurnaceRecipe.cpp @@ -137,7 +137,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) { - 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) |