Skip to content

Commit

Permalink
Update Xcode project; fix Mac build.
Browse files Browse the repository at this point in the history
  • Loading branch information
sa666666 committed Nov 10, 2021
1 parent 453dfb0 commit 860013d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 42 deletions.
2 changes: 1 addition & 1 deletion src/emucore/Random.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Random : public Serializable
Create a new random number generator with seed based on system time.
*/
explicit Random() {
initSeed(std::chrono::system_clock::now().time_since_epoch().count());
initSeed(static_cast<uInt32>(std::chrono::system_clock::now().time_since_epoch().count()));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gui/WhatsNewDialog.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ WhatsNewDialog::WhatsNewDialog(OSystem& osystem, DialogContainer& parent,

// Set needed dimensions
ypos += VGAP * 2 + buttonHeight + VBORDER;
assert(ypos <= FBMinimum::Height); // minimal launcher height
assert(ypos <= int(FBMinimum::Height)); // minimal launcher height
setSize(MAX_CHARS * fontWidth + HBORDER * 2, ypos, max_w, max_h);

WidgetArray wid;
Expand Down
Loading

0 comments on commit 860013d

Please sign in to comment.