diff options
author | David Tardon <dtardon@redhat.com> | 2012-03-08 06:31:09 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-03-12 08:53:25 +0100 |
commit | b44e997ebe6e2bc3a1d88df8fc8f92b64711a12c (patch) | |
tree | 2edbe6839501d5448d88e7eb4fcb398b7681fd2e /vcl | |
parent | ab233e2ec2f5a09bda59627bea112f6b8ec5bba4 (diff) |
WaE: comparison between signed and unsigned integer expressions
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/source/gdi/salgdi3.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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) ); |