summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-25 08:54:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-28 08:44:39 +0100
commitcaa080ea8020c369183a497a542e5e6ef2ee08ee (patch)
tree7a912ce5c7b19bac097bda18eb7d927b0c668eaa /basic
parentc091a9f06d37246de61ad8ecc39fe9fb9f9ec7a7 (diff)
Adapt to true wchar_t in clang-cl
Change-Id: I215b8215108a268f969106db6f01f876bd0dc0a0
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxdec.cxx6
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;
}