Skip to content

Commit

Permalink
Update TimeSpan native declarations (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Jun 15, 2018
1 parent b6bc082 commit 2ff35cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CLR/CorLib/corlib_native.h
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ struct Library_corlib_native_System_TimeSpan
static const int FIELD_STATIC__MaxValue = 8;
static const int FIELD_STATIC__MinValue = 9;

static const int FIELD___numberOfTicks = 1;
static const int FIELD___ticks = 1;

NANOCLR_NATIVE_DECLARE(Equals___BOOLEAN__OBJECT);
NANOCLR_NATIVE_DECLARE(ToString___STRING);
Expand Down
2 changes: 1 addition & 1 deletion src/CLR/CorLib/corlib_native_System_TimeSpan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ CLR_INT64* Library_corlib_native_System_TimeSpan::GetValuePtr( CLR_RT_HeapBlock&

if(dt == DATATYPE_VALUETYPE && obj->ObjectCls().m_data == g_CLR_RT_WellKnownTypes.m_TimeSpan.m_data)
{
return (CLR_INT64*)&obj[ FIELD___numberOfTicks ].NumericByRef().s8;
return (CLR_INT64*)&obj[ FIELD___ticks ].NumericByRef().s8;
}

return NULL;
Expand Down

0 comments on commit 2ff35cb

Please sign in to comment.