summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-26 15:55:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-26 17:34:50 +0100
commit3dec53d3d6bf65843d2bd3ec5781a0a2bffb0457 (patch)
tree33ad847d215d1bf4d55556c969d9370717d062f2 /extensions
parent475d4b274b499c2f3c482449df046baa2a483b24 (diff)
TYPEATTR::cFuncs,cVars are of type WORD
Change-Id: I9a597e7373aef64891e3323d20ba51cb12f897fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106699 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/ole/oleobjw.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/ole/oleobjw.cxx b/extensions/source/ole/oleobjw.cxx
index 532794f3992d..3985f51bc015 100644
--- a/extensions/source/ole/oleobjw.cxx
+++ b/extensions/source/ole/oleobjw.cxx
@@ -2383,7 +2383,7 @@ void IUnknownWrapper::buildComTlbIndex()
TypeAttr typeAttr(pType);
if( SUCCEEDED( pType->GetTypeAttr( &typeAttr)))
{
- for( long i= 0; i < typeAttr->cFuncs; i++)
+ for( WORD i= 0; i < typeAttr->cFuncs; i++)
{
FuncDesc funcDesc(pType);
if( SUCCEEDED( pType->GetFuncDesc( i, &funcDesc)))
@@ -2408,7 +2408,7 @@ void IUnknownWrapper::buildComTlbIndex()
//If we create an Object in JScript and a property then it
//has VARDESC instead of FUNCDESC
- for (long i = 0; i < typeAttr->cVars; i++)
+ for (WORD i = 0; i < typeAttr->cVars; i++)
{
VarDesc varDesc(pType);
if (SUCCEEDED(pType->GetVarDesc(i, & varDesc)))