From 27f0f98c4c15315d34db0395f41e085aaee7961c Mon Sep 17 00:00:00 2001 From: Martin Gallwey Date: Fri, 1 Dec 2000 10:39:30 +0000 Subject: [PATCH] #80556# fix moronic static_cast --- package/source/zipapi/ZipFile.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx index 85414f7b06de..23741016d3fb 100644 --- a/package/source/zipapi/ZipFile.cxx +++ b/package/source/zipapi/ZipFile.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ZipFile.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: mtg $ $Date: 2000-12-01 10:49:47 $ + * last change: $Author: mtg $ $Date: 2000-12-01 11:39:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -221,7 +221,7 @@ sal_Bool ZipFile::readLOC(const package::ZipEntry &rEntry) aGrabber >> nNameLen; aGrabber >> nExtraLen; package::ZipEntry *pNonConstEntry = const_cast < package::ZipEntry* > (&rEntry); - pNonConstEntry->nOffset = static_cast < sal_Int8 > (aGrabber.getPosition()) + nNameLen + nExtraLen; + pNonConstEntry->nOffset = static_cast < sal_Int32 > (aGrabber.getPosition()) + nNameLen + nExtraLen; return sal_True; /*