Skip to content

Commit

Permalink
Fix Truncate function (#1499)
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszKlatecki authored and josesimoes committed Nov 11, 2019
1 parent 3a7ea70 commit b5e3989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CLR/System.Math/nf_native_system_math_System_Math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -967,9 +967,9 @@

double d = stack.Arg0().NumericByRefConst().r8;
double res = 0.0;
double retVal = System::Math::Truncate(d, res);
modf(d, &res);

stack.SetResult_R8( retVal );
stack.SetResult_R8( res );

NANOCLR_NOCLEANUP_NOLABEL();

Expand Down

0 comments on commit b5e3989

Please sign in to comment.