Skip to content

Commit

Permalink
Fix .IO.z brokenness
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed May 24, 2014
1 parent 2dd18de commit cb77438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/IO.pm
Expand Up @@ -69,8 +69,8 @@ my role IO::FileTestable does IO {

method z() {
my Mu $unboxed := nqp::unbox_s(IO::Spec.rel2abs(self.Str));
nqp::p6bool(nqp::stat($unboxed, nqp::const::STAT_ISREG)) &&
nqp::p6bool(nqp::stat($unboxed, nqp::const::STAT_EXISTS)) &&
nqp::p6bool(nqp::stat($unboxed, nqp::const::STAT_ISREG)) &&
nqp::p6bool(nqp::stat($unboxed, nqp::const::STAT_FILESIZE)) == 0
}

Expand Down

0 comments on commit cb77438

Please sign in to comment.