extensions/source/ole/oleobjw.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 3dec53d3d6bf65843d2bd3ec5781a0a2bffb0457 Author: Stephan Bergmann <[email protected]> AuthorDate: Thu Nov 26 15:55:51 2020 +0100 Commit: Stephan Bergmann <[email protected]> CommitDate: Thu Nov 26 17:34:50 2020 +0100 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 <[email protected]> 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))) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
