Fixed a couple of compiler warnings.

This commit is contained in:
David Capello 2010-03-29 00:00:39 -03:00
parent bea59d7280
commit 749488d794
2 changed files with 2 additions and 2 deletions

View File

@ -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; i<palette->size(); ++i) {
for (size_t i=0; i<palette->size(); ++i) {
rgbquad->rgbRed = _rgba_getr(palette->getEntry(i));
rgbquad->rgbGreen = _rgba_getg(palette->getEntry(i));
rgbquad->rgbBlue = _rgba_getb(palette->getEntry(i));

View File

@ -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;