Skip to content

Commit

Permalink
[Truffle] Maintain the order in ExceptionErrnoErrorPrimitiveNode.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed May 27, 2015
1 parent a25eb93 commit 2d629e4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public static abstract class ExceptionErrnoErrorPrimitiveNode extends RubiniusPr
protected final static int ENOENT = Errno.ENOENT.intValue();
protected final static int EBADF = Errno.EBADF.intValue();
protected final static int EEXIST = Errno.EEXIST.intValue();
protected final static int EFAULT = Errno.EFAULT.intValue();
protected final static int EACCES = Errno.EACCES.intValue();
protected final static int EFAULT = Errno.EFAULT.intValue();
protected final static int ENOTDIR = Errno.ENOTDIR.intValue();

public static boolean isExceptionSupported(int errno) {
return errno == ENOENT || errno == EBADF || errno == EEXIST || errno == EACCES || errno == ENOTDIR || errno == EFAULT;
return errno == ENOENT || errno == EBADF || errno == EEXIST || errno == EACCES || errno == EFAULT || errno == ENOTDIR;
}

public ExceptionErrnoErrorPrimitiveNode(RubyContext context, SourceSection sourceSection) {
Expand Down

0 comments on commit 2d629e4

Please sign in to comment.