diff --git a/src/CLR/CorLib/corlib_native_System_Math.cpp b/src/CLR/CorLib/corlib_native_System_Math.cpp index d603d94360..8d4a45943f 100644 --- a/src/CLR/CorLib/corlib_native_System_Math.cpp +++ b/src/CLR/CorLib/corlib_native_System_Math.cpp @@ -989,9 +989,9 @@ float d = stack.Arg0().NumericByRefConst().r4; float res = 0.0; - float retVal = modff(d, &res); + modff(d, &res); - stack.SetResult_R4( retVal ); + stack.SetResult_R4( res ); NANOCLR_NOCLEANUP_NOLABEL();