diff options
author | Konstantin Baladurin <k.baladurin@partner.samsung.com> | 2018-04-04 19:38:22 +0300 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2018-04-04 18:38:22 +0200 |
commit | fe44fe6526ea3c6e6322f3684651c14865431dcf (patch) | |
tree | bc4379c749c4bafa5fa3944f958129f5793182ea /src/classlibnative | |
parent | d1f49cc4b26d28fdb1c4f3bf147668e13b8995eb (diff) | |
download | coreclr-fe44fe6526ea3c6e6322f3684651c14865431dcf.tar.gz coreclr-fe44fe6526ea3c6e6322f3684651c14865431dcf.tar.bz2 coreclr-fe44fe6526ea3c6e6322f3684651c14865431dcf.zip |
[x86/Linux] Fix COMNumber::DoubleToNumberFC arguments order (#17412)
We should use FCDECL3_VII/FCIMPL3_VII instead of FCDECL3/FCIMPL3
otherwise we got incorrect order of arguments that leads to crashes.
Diffstat (limited to 'src/classlibnative')
-rw-r--r-- | src/classlibnative/bcltype/number.cpp | 2 | ||||
-rw-r--r-- | src/classlibnative/bcltype/number.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/classlibnative/bcltype/number.cpp b/src/classlibnative/bcltype/number.cpp index 69ee0d6313..ac068d6a54 100644 --- a/src/classlibnative/bcltype/number.cpp +++ b/src/classlibnative/bcltype/number.cpp @@ -1983,7 +1983,7 @@ ParseSection: #pragma warning(pop) #endif -FCIMPL3(void, COMNumber::DoubleToNumberFC, double value, int precision, NUMBER* number) +FCIMPL3_VII(void, COMNumber::DoubleToNumberFC, double value, int precision, NUMBER* number) { FCALL_CONTRACT; diff --git a/src/classlibnative/bcltype/number.h b/src/classlibnative/bcltype/number.h index c225b3ea3b..bf1f328b02 100644 --- a/src/classlibnative/bcltype/number.h +++ b/src/classlibnative/bcltype/number.h @@ -31,7 +31,7 @@ struct NUMBER { class COMNumber { public: - static FCDECL3(void, DoubleToNumberFC, double value, int precision, NUMBER* number); + static FCDECL3_VII(void, DoubleToNumberFC, double value, int precision, NUMBER* number); static FCDECL1(double, NumberToDoubleFC, NUMBER* number); static FCDECL2(FC_BOOL_RET, NumberBufferToDecimal, NUMBER* number, DECIMAL* value); |