summaryrefslogtreecommitdiffstats
path: root/src/FurnaceRecipe.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-31 20:53:41 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-31 20:53:41 +0200
commit0d392f53ed5ef96886003afd90c6ce37c16dc7d3 (patch)
tree98bbc3d07ffdf070a43f47c62169a0a3bdf3b47e /src/FurnaceRecipe.cpp
parentFixed wrong doxy-comment. (diff)
downloadcuberite-0d392f53ed5ef96886003afd90c6ce37c16dc7d3.tar
cuberite-0d392f53ed5ef96886003afd90c6ce37c16dc7d3.tar.gz
cuberite-0d392f53ed5ef96886003afd90c6ce37c16dc7d3.tar.bz2
cuberite-0d392f53ed5ef96886003afd90c6ce37c16dc7d3.tar.lz
cuberite-0d392f53ed5ef96886003afd90c6ce37c16dc7d3.tar.xz
cuberite-0d392f53ed5ef96886003afd90c6ce37c16dc7d3.tar.zst
cuberite-0d392f53ed5ef96886003afd90c6ce37c16dc7d3.zip
Diffstat (limited to 'src/FurnaceRecipe.cpp')
-rw-r--r--src/FurnaceRecipe.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FurnaceRecipe.cpp b/src/FurnaceRecipe.cpp
index eb64e0a91..eec76fa4a 100644
--- a/src/FurnaceRecipe.cpp
+++ b/src/FurnaceRecipe.cpp
@@ -77,7 +77,7 @@ void cFurnaceRecipe::ReloadRecipes(void)
size_t FirstCommentSymbol = ParsingLine.find('#');
if ((FirstCommentSymbol != AString::npos) && (FirstCommentSymbol != 0))
{
- ParsingLine.erase(ParsingLine.begin() + FirstCommentSymbol, ParsingLine.end());
+ ParsingLine.erase(ParsingLine.begin() + (const long)FirstCommentSymbol, ParsingLine.end());
}
switch (ParsingLine[0])
@@ -109,7 +109,7 @@ void cFurnaceRecipe::ReloadRecipes(void)
-void cFurnaceRecipe::AddFuelFromLine(const AString & a_Line, int a_LineNum)
+void cFurnaceRecipe::AddFuelFromLine(const AString & a_Line, unsigned int a_LineNum)
{
AString Line(a_Line);
Line.erase(Line.begin()); // Remove the beginning "!"
@@ -151,7 +151,7 @@ void cFurnaceRecipe::AddFuelFromLine(const AString & a_Line, int a_LineNum)
-void cFurnaceRecipe::AddRecipeFromLine(const AString & a_Line, int a_LineNum)
+void cFurnaceRecipe::AddRecipeFromLine(const AString & a_Line, unsigned int a_LineNum)
{
AString Line(a_Line);
Line.erase(std::remove_if(Line.begin(), Line.end(), isspace), Line.end());