Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dont use (char) typecast for codepoints
This typecast does not support codepoints > 0x10000. This fixes
at least one test in roast.
  • Loading branch information
FROGGS committed Jul 8, 2013
1 parent f4db52b commit 53a9e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -2672,7 +2672,7 @@ public static String concat(String valA, String valB) {
}

public static String chr(long val) {
return (new StringBuffer()).append((char) val).toString();
return (new StringBuffer()).append(Character.toChars((int)val)).toString();
}

public static String join(String delimiter, SixModelObject arr, ThreadContext tc) {
Expand Down

0 comments on commit 53a9e36

Please sign in to comment.