From 749488d794c9e2a3ba85ff1a3813155149c8e978 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 29 Mar 2010 00:00:39 -0300 Subject: [PATCH] Fixed a couple of compiler warnings. --- src/util/clipboard_win32.h | 2 +- src/widgets/colbar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/clipboard_win32.h b/src/util/clipboard_win32.h index 3abb6e4ae..0ab35f985 100644 --- a/src/util/clipboard_win32.h +++ b/src/util/clipboard_win32.h @@ -128,7 +128,7 @@ static void set_win32_clipboard_bitmap(Image* image, Palette* palette) case IMAGE_INDEXED: { Palette* palette = get_current_palette(); RGBQUAD* rgbquad = (RGBQUAD*)(((ase_uint8*)bi)+bi->bV5Size); - for (int i=0; isize(); ++i) { + for (size_t i=0; isize(); ++i) { rgbquad->rgbRed = _rgba_getr(palette->getEntry(i)); rgbquad->rgbGreen = _rgba_getg(palette->getEntry(i)); rgbquad->rgbBlue = _rgba_getb(palette->getEntry(i)); diff --git a/src/widgets/colbar.cpp b/src/widgets/colbar.cpp index e8d395465..bf3c6033a 100644 --- a/src/widgets/colbar.cpp +++ b/src/widgets/colbar.cpp @@ -440,7 +440,7 @@ bool ColorBar::msg_proc(JMessage msg) if (((int)m_firstIndex)+delta < 0) m_firstIndex = 0; - else if (m_firstIndex+delta > 256-getEntriesCount()) + else if (((int)m_firstIndex)+delta > 256-getEntriesCount()) m_firstIndex = 256-getEntriesCount(); else m_firstIndex += delta;