Try compiling with WAll, that was dumb but fixed some things anyhow
This commit is contained in:
@@ -20,7 +20,7 @@ public:
|
||||
int clicksAtZero = 0;
|
||||
|
||||
if (mDebug) std::cout << "Turning left " << amount << " from " << mPosition;
|
||||
|
||||
|
||||
while (amount > 0) {
|
||||
if (mPosition == 0) {
|
||||
mPosition = mMaxPosition;
|
||||
@@ -64,10 +64,10 @@ public:
|
||||
return mPosition;
|
||||
}
|
||||
private:
|
||||
const bool mDebug;
|
||||
const int mMaxPosition;
|
||||
const int mMinPosition;
|
||||
int mPosition;
|
||||
const bool mDebug;
|
||||
};
|
||||
|
||||
class Day01Solution : public AdventHelpers::AdventOfCodeSolution
|
||||
@@ -124,7 +124,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
int main(const char *argv[], int argc)
|
||||
int main()
|
||||
{
|
||||
Day01Solution solution;
|
||||
solution.SolveAll();
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v145</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<EnableASAN>true</EnableASAN>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
@@ -38,12 +39,14 @@
|
||||
<PlatformToolset>v145</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<EnableASAN>false</EnableASAN>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v145</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<EnableASAN>true</EnableASAN>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
@@ -51,6 +54,7 @@
|
||||
<PlatformToolset>v145</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<EnableASAN>false</EnableASAN>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
|
||||
Reference in New Issue
Block a user