Skip to content
Permalink
Browse files
Forgot I switched order ot parameters to match C call
  • Loading branch information
enebo committed Dec 4, 2014
1 parent 2f9f898 commit 9f8b6a5cdf20e657c9e02c9ee4f62859e2377ef8
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/org/jruby/RubyString.java
@@ -2656,7 +2656,7 @@ public RubyString crypt(ThreadContext context, IRubyObject other) {
}

RubyString result = RubyString.newString(context.runtime,
context.runtime.getPosix().crypt(salt, asJavaString()).toString());
context.runtime.getPosix().crypt(asJavaString(), salt).toString());
result.infectBy(this);
result.infectBy(otherStr);
return result;

0 comments on commit 9f8b6a5

Please sign in to comment.