Skip to content

Commit f82a2e0

Browse files
authored
Code style fixes (#159)
Automated fixes for code style.
1 parent aff8379 commit f82a2e0

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

src/CLR/Core/Interpreter.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2396,10 +2396,11 @@ HRESULT CLR_RT_Thread::Execute_IL(CLR_RT_StackFrame &stackArg)
23962396
// check that...
23972397
//
23982398
changes = -calleeInst.target->argumentsCount;
2399-
NANOCLR_CHECK_HRESULT(CLR_Checks::VerifyStackOK(
2400-
*stack,
2401-
stack->m_evalStackPos,
2402-
changes)); // Check to see if we have enough parameters.
2399+
NANOCLR_CHECK_HRESULT(
2400+
CLR_Checks::VerifyStackOK(
2401+
*stack,
2402+
stack->m_evalStackPos,
2403+
changes)); // Check to see if we have enough parameters.
24032404
stack->m_evalStackPos += changes;
24042405

24052406
top = stack->m_evalStackPos++; // Push back the result.
@@ -2435,10 +2436,11 @@ HRESULT CLR_RT_Thread::Execute_IL(CLR_RT_StackFrame &stackArg)
24352436
else
24362437
{
24372438
changes = calleeInst.target->argumentsCount;
2438-
NANOCLR_CHECK_HRESULT(CLR_Checks::VerifyStackOK(
2439-
*stack,
2440-
stack->m_evalStackPos,
2441-
-changes)); // Check to see if we have enough parameters.
2439+
NANOCLR_CHECK_HRESULT(
2440+
CLR_Checks::VerifyStackOK(
2441+
*stack,
2442+
stack->m_evalStackPos,
2443+
-changes)); // Check to see if we have enough parameters.
24422444
top = stack->m_evalStackPos;
24432445

24442446
//

src/CLR/Core/TypeSystem.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,8 +1335,8 @@ bool CLR_RT_FieldDef_Instance::ResolveToken(
13351335

13361336
// now bind against effectiveTS
13371337
genericType = effectiveTS;
1338-
//CLR_RT_Assembly *tsAsm = g_CLR_RT_TypeSystem.m_assemblies[effectiveTS->Assembly() - 1];
1339-
//const CLR_RECORD_TYPESPEC *tsRec = tsAsm->GetTypeSpec(effectiveTS->TypeSpec());
1338+
// CLR_RT_Assembly *tsAsm = g_CLR_RT_TypeSystem.m_assemblies[effectiveTS->Assembly() - 1];
1339+
// const CLR_RECORD_TYPESPEC *tsRec = tsAsm->GetTypeSpec(effectiveTS->TypeSpec());
13401340

13411341
//// if (!tsAsm->FindFieldDef(tsRec, tsAsm->GetString(fr->name), tsAsm, fr->signature,
13421342
//// resolved))
@@ -6749,7 +6749,6 @@ HRESULT CLR_RT_TypeSystem::BuildMethodName(
67496749
NANOCLR_CHECK_HRESULT(BuildTypeName(*genericType, szBuffer, iBuffer, 0));
67506750
}
67516751

6752-
67536752
CLR_SafeSprintf(szBuffer, iBuffer, "::%s", inst.assembly->GetString(inst.target->name));
67546753

67556754
NANOCLR_NOCLEANUP();

src/CLR/Diagnostics/Diagnostics_stub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ __nfweak const CLR_UINT8 *CLR_SkipBodyOfOpcodeCompressed(const CLR_UINT8 *ip, CL
111111
}
112112

113113
#if defined(NANOCLR_TRACE_INSTRUCTIONS)
114-
114+
115115
__nfweak void CLR_RT_Assembly::DumpToken(CLR_UINT32 tk, const CLR_RT_MethodDef_Instance &methodDefInstance)
116116
{
117117
NATIVE_PROFILE_CLR_DIAGNOSTICS();

src/CLR/Include/nanoCLR_Runtime__HeapBlock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ struct CLR_RT_HeapBlock
11991199
else
12001200
{
12011201
// Invalid index
1202-
return (CLR_RT_TypeSpec_Index)0x0;
1202+
return (CLR_RT_TypeSpec_Index)0x0;
12031203
}
12041204
}
12051205

0 commit comments

Comments
 (0)