dwrite: Avoid signed-unsigned integer comparisons.
This commit is contained in:
parent
3e2c44af7d
commit
fd00c806bf
|
@ -211,7 +211,7 @@ static const struct script_range script_ranges[] = {
|
||||||
static UINT16 get_char_script( WCHAR c )
|
static UINT16 get_char_script( WCHAR c )
|
||||||
{
|
{
|
||||||
DWORD ch = c;
|
DWORD ch = c;
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
for (i = 0; i < sizeof(script_ranges)/sizeof(struct script_range); i++)
|
for (i = 0; i < sizeof(script_ranges)/sizeof(struct script_range); i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -288,7 +288,7 @@ static HRESULT WINAPI dwritefontface_GetGlyphIndices(IDWriteFontFace *iface, UIN
|
||||||
HFONT hfont;
|
HFONT hfont;
|
||||||
WCHAR *str;
|
WCHAR *str;
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
TRACE("(%p)->(%p %u %p)\n", This, codepoints, count, glyph_indices);
|
TRACE("(%p)->(%p %u %p)\n", This, codepoints, count, glyph_indices);
|
||||||
|
|
||||||
|
@ -783,7 +783,7 @@ static INT CALLBACK enum_font_families(const LOGFONTW *lf, const TEXTMETRICW *tm
|
||||||
static void release_font_collection(IDWriteFontCollection *iface)
|
static void release_font_collection(IDWriteFontCollection *iface)
|
||||||
{
|
{
|
||||||
struct dwrite_fontcollection *This = impl_from_IDWriteFontCollection(iface);
|
struct dwrite_fontcollection *This = impl_from_IDWriteFontCollection(iface);
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
for (i = 0; i < This->count; i++)
|
for (i = 0; i < This->count; i++)
|
||||||
heap_free(This->families[i]);
|
heap_free(This->families[i]);
|
||||||
|
|
|
@ -228,7 +228,7 @@ static ULONG WINAPI localizedstrings_Release(IDWriteLocalizedStrings *iface)
|
||||||
TRACE("(%p)->(%d)\n", This, ref);
|
TRACE("(%p)->(%d)\n", This, ref);
|
||||||
|
|
||||||
if (!ref) {
|
if (!ref) {
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
for (i = 0; i < This->count; i++) {
|
for (i = 0; i < This->count; i++) {
|
||||||
heap_free(This->data[i].locale);
|
heap_free(This->data[i].locale);
|
||||||
|
|
Loading…
Reference in New Issue