From b44e997ebe6e2bc3a1d88df8fc8f92b64711a12c Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 8 Mar 2012 06:31:09 +0100 Subject: WaE: comparison between signed and unsigned integer expressions --- vcl/win/source/gdi/salgdi3.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vcl') diff --git a/vcl/win/source/gdi/salgdi3.cxx b/vcl/win/source/gdi/salgdi3.cxx index cbcea3d5d1d9..e6171ef18c3d 100644 --- a/vcl/win/source/gdi/salgdi3.cxx +++ b/vcl/win/source/gdi/salgdi3.cxx @@ -259,7 +259,7 @@ public: private: unsigned char* mpRawBytes; - int mnByteCount; + unsigned mnByteCount; }; RawFontData::RawFontData( HDC hDC, DWORD nTableTag ) @@ -277,7 +277,7 @@ RawFontData::RawFontData( HDC hDC, DWORD nTableTag ) mpRawBytes = new unsigned char[ mnByteCount ]; // get raw data in chunks small enough for GetFontData() - int nRawDataOfs = 0; + unsigned nRawDataOfs = 0; DWORD nMaxChunkSize = 0x100000; for(;;) { @@ -2096,8 +2096,8 @@ static bool ImplGetFontAttrFromFile( const String& rFontFileURL, ::DeleteFileA( aResourceName ); // retrieve font family name from byte offset 0x4F6 - int i = 0x4F6; - int nNameOfs = i; + sal_uInt64 i = 0x4F6; + sal_uInt64 nNameOfs = i; while( (i < nBytesRead) && (aBuffer[i++] != 0) ); // skip full name while( (i < nBytesRead) && (aBuffer[i++] != 0) ); -- cgit