diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-25 08:54:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-28 08:44:39 +0100 |
commit | caa080ea8020c369183a497a542e5e6ef2ee08ee (patch) | |
tree | 7a912ce5c7b19bac097bda18eb7d927b0c668eaa | |
parent | c091a9f06d37246de61ad8ecc39fe9fb9f9ec7a7 (diff) |
Adapt to true wchar_t in clang-cl
Change-Id: I215b8215108a268f969106db6f01f876bd0dc0a0
-rw-r--r-- | basic/source/sbx/sbxdec.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/basic/source/sbx/sbxdec.cxx b/basic/source/sbx/sbxdec.cxx index 4a9cd12a91a5..e0e4afa32d58 100644 --- a/basic/source/sbx/sbxdec.cxx +++ b/basic/source/sbx/sbxdec.cxx @@ -239,7 +239,11 @@ bool SbxDecimal::setString( OUString* pOUString ) bool SbxDecimal::getChar( sal_Unicode& rVal ) { - bool bRet = ( VarUI2FromDec( &maDec, &rVal ) == S_OK ); + USHORT n; + bool bRet = ( VarUI2FromDec( &maDec, &n ) == S_OK ); + if (bRet) { + rVal = n; + } return bRet; } |