Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rubinius/rubinius
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f1f7b56f6087
Choose a base ref
...
head repository: rubinius/rubinius
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b2a82222847d
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jun 13, 2015

  1. Fix Stat::stat_birthtime.

    This commit fixes a build error due to a signature mismatch of the Time::at
    method and the way it was being used in Stat::stat_birthtime.
    ruipserra committed Jun 13, 2015
    Copy the full SHA
    12b906b View commit details
  2. Merge pull request #3439 from ruipserra/fix_stat_birthtime

    Fix Stat::stat_birthtime.
    jemc committed Jun 13, 2015
    Copy the full SHA
    b2a8222 View commit details
Showing with 2 additions and 1 deletion.
  1. +2 −1 vm/builtin/stat.cpp
3 changes: 2 additions & 1 deletion vm/builtin/stat.cpp
Original file line number Diff line number Diff line change
@@ -79,7 +79,8 @@ namespace rubinius {

Object* Stat::stat_birthtime(STATE) {
#ifdef HAVE_ST_BIRTHTIME
return Time::at(state, st_.st_birthtimespec);
struct timespec ts = st_.st_birthtimespec;
return Time::at(state, ts.tv_sec, ts.tv_nsec);
#else
return Primitives::failure();
#endif