From caa080ea8020c369183a497a542e5e6ef2ee08ee Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 25 Nov 2015 08:54:23 +0100 Subject: [PATCH] Adapt to true wchar_t in clang-cl Change-Id: I215b8215108a268f969106db6f01f876bd0dc0a0 --- basic/source/sbx/sbxdec.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }