Skip to content

Commit

Permalink
Forgot I switched order ot parameters to match C call
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Dec 4, 2014
1 parent 2f9f898 commit 9f8b6a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyString.java
Expand Up @@ -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;
Expand Down

0 comments on commit 9f8b6a5

Please sign in to comment.