mirror of https://github.com/stella-emu/stella.git
Oops, a little too much pruning, detected by compiling in OSX.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3206 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
d83d91570e
commit
2ccebc9720
|
@ -300,7 +300,7 @@ void PNGLibrary::loadImagetoSurface(FBSurface& surface)
|
|||
void PNGLibrary::writeComments(png_structp png_ptr, png_infop info_ptr,
|
||||
const VariantList& comments)
|
||||
{
|
||||
uInt32 numComments = comments.size();
|
||||
uInt32 numComments = uInt32(comments.size());
|
||||
if(numComments == 0)
|
||||
return;
|
||||
|
||||
|
|
|
@ -1275,7 +1275,7 @@ void DebuggerParser::executeRunTo()
|
|||
const CartDebug& cartdbg = debugger.cartDebug();
|
||||
const CartDebug::DisassemblyList& list = cartdbg.disassembly().list;
|
||||
|
||||
uInt32 count = 0, max_iterations = list.size();
|
||||
uInt32 count = 0, max_iterations = int(list.size());
|
||||
|
||||
// Create a progress dialog box to show the progress searching through the
|
||||
// disassembly, since this may be a time-consuming operation
|
||||
|
|
|
@ -63,7 +63,7 @@ CartRamWidget::CartRamWidget(
|
|||
const uInt16 maxlines = 6;
|
||||
StringParser bs(desc, (fwidth - kScrollBarWidth) / myFontWidth);
|
||||
const StringList& sl = bs.stringList();
|
||||
uInt32 lines = sl.size();
|
||||
uInt32 lines = uInt32(sl.size());
|
||||
if(lines < 3) lines = 3;
|
||||
if(lines > maxlines) lines = maxlines;
|
||||
|
||||
|
|
|
@ -225,7 +225,7 @@ void RomListWidget::scrollToCurrent(int item)
|
|||
_currentPos = item - _rows + 1;
|
||||
}
|
||||
|
||||
int size = myDisasm->list.size();
|
||||
int size = int(myDisasm->list.size());
|
||||
if (_currentPos < 0 || _rows > size)
|
||||
_currentPos = 0;
|
||||
else if (_currentPos + _rows > size)
|
||||
|
|
|
@ -92,7 +92,7 @@ void TogglePixelWidget::setIntState(int value, bool swap)
|
|||
int TogglePixelWidget::getIntState()
|
||||
{
|
||||
// Construct int based on current state and swap
|
||||
uInt32 value = 0, size = _stateList.size();
|
||||
uInt32 value = 0, size = int(_stateList.size());
|
||||
|
||||
for(uInt32 i = 0; i < size; ++i)
|
||||
{
|
||||
|
|
|
@ -850,7 +850,7 @@ bool FrameBuffer::VideoModeList::empty() const
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
uInt32 FrameBuffer::VideoModeList::size() const
|
||||
{
|
||||
return myModeList.size();
|
||||
return uInt32(myModeList.size());
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
|
@ -386,7 +386,7 @@ uInt32 M6502::addCondBreak(Expression* e, const string& name)
|
|||
{
|
||||
myBreakConds.emplace_back(unique_ptr<Expression>(e));
|
||||
myBreakCondNames.push_back(name);
|
||||
return myBreakConds.size() - 1;
|
||||
return uInt32(myBreakConds.size() - 1);
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
|
@ -86,7 +86,7 @@ void CheckListWidget::drawWidget(bool hilite)
|
|||
{
|
||||
//cerr << "CheckListWidget::drawWidget\n";
|
||||
FBSurface& s = _boss->dialog().surface();
|
||||
int i, pos, len = _list.size();
|
||||
int i, pos, len = int(_list.size());
|
||||
|
||||
// Draw a thin frame around the list and to separate columns
|
||||
s.hLine(_x, _y, _x + _w - 1, kColor);
|
||||
|
|
|
@ -59,7 +59,7 @@ void EditableWidget::setText(const string& str, bool)
|
|||
if(_filter(tolower(c)))
|
||||
_editString.push_back(c);
|
||||
|
||||
_caretPos = _editString.size();
|
||||
_caretPos = int(_editString.size());
|
||||
|
||||
_editScrollOffset = (_font.getStringWidth(_editString) - (getEditRect().width()));
|
||||
if (_editScrollOffset < 0)
|
||||
|
@ -275,7 +275,7 @@ bool EditableWidget::specialKeys(StellaKey key)
|
|||
break;
|
||||
|
||||
case KBDK_E:
|
||||
setCaretPos(_editString.size());
|
||||
setCaretPos(int(_editString.size()));
|
||||
break;
|
||||
|
||||
case KBDK_D:
|
||||
|
|
|
@ -53,7 +53,7 @@ int Font::getStringWidth(const string& str) const
|
|||
{
|
||||
// If no width table is specified, use the maximum width
|
||||
if(!myFontDesc.width)
|
||||
return myFontDesc.maxwidth * str.size();
|
||||
return myFontDesc.maxwidth * int(str.size());
|
||||
else
|
||||
{
|
||||
int space = 0;
|
||||
|
|
|
@ -45,7 +45,7 @@ class GameList
|
|||
void setMd5(uInt32 i, const string& md5)
|
||||
{ myArray[i]._md5 = md5; }
|
||||
|
||||
uInt32 size() const { return myArray.size(); }
|
||||
uInt32 size() const { return uInt32(myArray.size()); }
|
||||
void clear() { myArray.clear(); }
|
||||
|
||||
void appendGame(const string& name, const string& path, const string& md5,
|
||||
|
|
|
@ -72,14 +72,14 @@ void InputTextDialog::initialize(const GUI::Font& lfont, const GUI::Font& nfont,
|
|||
|
||||
// Calculate real dimensions
|
||||
_w = fontWidth * 35;
|
||||
_h = lineHeight * 4 + labels.size() * (lineHeight + 5);
|
||||
_h = lineHeight * 4 + int(labels.size()) * (lineHeight + 5);
|
||||
|
||||
// Determine longest label
|
||||
for(i = 0; i < labels.size(); ++i)
|
||||
{
|
||||
if(labels[i].length() > lwidth)
|
||||
{
|
||||
lwidth = labels[i].length();
|
||||
lwidth = int(labels[i].length());
|
||||
maxIdx = i;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -147,7 +147,7 @@ const string& ListWidget::getSelectedString() const
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void ListWidget::scrollTo(int item)
|
||||
{
|
||||
int size = _list.size();
|
||||
int size = int(_list.size());
|
||||
if (item >= size)
|
||||
item = size - 1;
|
||||
if (item < 0)
|
||||
|
@ -163,7 +163,7 @@ void ListWidget::scrollTo(int item)
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void ListWidget::recalc()
|
||||
{
|
||||
int size = _list.size();
|
||||
int size = int(_list.size());
|
||||
|
||||
if (_currentPos >= size)
|
||||
_currentPos = size - 1;
|
||||
|
@ -175,7 +175,7 @@ void ListWidget::recalc()
|
|||
|
||||
_editMode = false;
|
||||
|
||||
_scrollBar->_numEntries = _list.size();
|
||||
_scrollBar->_numEntries = int(_list.size());
|
||||
_scrollBar->_entriesPerPage = _rows;
|
||||
|
||||
// Reset to normal data entry
|
||||
|
@ -340,7 +340,7 @@ bool ListWidget::handleEvent(Event::Type e)
|
|||
|
||||
bool handled = true;
|
||||
int oldSelectedItem = _selectedItem;
|
||||
int size = _list.size();
|
||||
int size = int(_list.size());
|
||||
|
||||
switch(e)
|
||||
{
|
||||
|
|
|
@ -129,7 +129,7 @@ void RomAuditDialog::auditRoms()
|
|||
// the ROMs, since this is usually a time-consuming operation
|
||||
ProgressDialog progress(this, instance().frameBuffer().font(),
|
||||
"Auditing ROM files ...");
|
||||
progress.setRange(0, files.size() - 1, 5);
|
||||
progress.setRange(0, int(files.size()) - 1, 5);
|
||||
|
||||
// Create a entry for the GameList for each file
|
||||
Properties props;
|
||||
|
|
|
@ -48,7 +48,7 @@ void StringListWidget::setList(const StringList& list)
|
|||
void StringListWidget::drawWidget(bool hilite)
|
||||
{
|
||||
FBSurface& s = _boss->dialog().surface();
|
||||
int i, pos, len = _list.size();
|
||||
int i, pos, len = int(_list.size());
|
||||
|
||||
// Draw a thin frame around the list.
|
||||
s.hLine(_x, _y, _x + _w - 1, kColor);
|
||||
|
|
|
@ -70,7 +70,7 @@ int TabWidget::addTab(const string& title)
|
|||
{
|
||||
// Add a new tab page
|
||||
_tabs.push_back(Tab(title));
|
||||
int numTabs = _tabs.size();
|
||||
int numTabs = int(_tabs.size());
|
||||
|
||||
// Determine the new tab width
|
||||
int newWidth = _font.getStringWidth(title) + 2 * kTabPadding;
|
||||
|
|
|
@ -201,7 +201,7 @@ Widget* Widget::setFocusForChain(GuiObject* boss, WidgetArray& arr,
|
|||
bool emitFocusEvents)
|
||||
{
|
||||
FBSurface& s = boss->dialog().surface();
|
||||
int size = arr.size(), pos = -1;
|
||||
int size = int(arr.size()), pos = -1;
|
||||
Widget* tmp;
|
||||
for(int i = 0; i < size; ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue