Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Nov 3, 2015
1 parent b485f01 commit 558d3b0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions LunaDll/LuaMain/LuaProxyComponent/LuaProxySection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void LuaProxy::Section::setMusicID(short musicID)

bool LuaProxy::Section::isLevelWarp() const
{
return (bool)GM_SEC_ISWARP[m_secNum] != 0;
return (bool)(GM_SEC_ISWARP[m_secNum] != 0);
}

void LuaProxy::Section::setIsLevelWarp(bool isLevelWarp)
Expand Down Expand Up @@ -87,7 +87,7 @@ void LuaProxy::Section::setBackgroundID(short backgroundID)

bool LuaProxy::Section::noTurnBack() const
{
return (bool)GM_SEC_NOTURNBACK[m_secNum] != 0;
return (bool)(GM_SEC_NOTURNBACK[m_secNum] != 0);
}

void LuaProxy::Section::setNoTurnBack(bool noTurnBack)
Expand All @@ -97,7 +97,7 @@ void LuaProxy::Section::setNoTurnBack(bool noTurnBack)

bool LuaProxy::Section::isUnderwater() const
{
return (bool)GM_SEC_ISUNDERWATER[m_secNum] != 0;
return (bool)(GM_SEC_ISUNDERWATER[m_secNum] != 0);
}

void LuaProxy::Section::setIsUnderwater(bool isUnderwater)
Expand Down
2 changes: 1 addition & 1 deletion LunaDll/LunaDll.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;FreeImage.lib;version.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;winmm.lib;libluabind.lib;lua51.lib;Dbghelp.lib;Ws2_32.lib;SDL2.lib;SDL2_mixer_ext.lib;SDL2main.lib;comsuppw.lib;opengl32.lib;glew32s.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;FreeImage.lib;version.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;winmm.lib;libluabind.lib;lua51.lib;Dbghelp.lib;Ws2_32.lib;SDL2.lib;SDL2main.lib;SDL2_mixer_ext.lib;comsuppw.lib;opengl32.lib;glew32s.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ForceFileOutput>
</ForceFileOutput>
<GenerateMapFile>true</GenerateMapFile>
Expand Down
4 changes: 2 additions & 2 deletions LunaDll/Misc/TypeLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ bool TypeLib::NextFunction() {
}

bool TypeLib::HasFunctionTypeFlag(TYPEFLAG tf) {
return curImplTypeFlags_ & static_cast<int>(tf);
return ((curImplTypeFlags_&static_cast<int>(tf))!=0);
}

std::string TypeLib::ConstValue() {
Expand Down Expand Up @@ -338,7 +338,7 @@ bool TypeLib::ParameterHasCustumData() {
}
bool TypeLib::ParameterIsHasX(int flag) {
ELEMDESC e = curFuncDesc_->lprgelemdescParam[curFuncParam_];
return e.paramdesc.wParamFlags & flag;
return ((e.paramdesc.wParamFlags & flag)!=0);
}

void TypeLib::ReleaseFuncNames() {
Expand Down
2 changes: 1 addition & 1 deletion LunaDll/libs/boost/boost/config/compiler/visualc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@

//
// last known and checked version is 18.00.20827.3 (VC12 RC, aka 2013 RC):
#if (_MSC_VER > 1800 && _MSC_FULL_VER > 180020827)
#if (_MSC_VER > 1900 && _MSC_FULL_VER > 190023027)
# if defined(BOOST_ASSERT_CONFIG)
# error "Unknown compiler version - please run the configure tests and report the results"
# else
Expand Down

0 comments on commit 558d3b0

Please sign in to comment.