Skip to content

Commit 225bdad

Browse files
committed
[jvm] Implement '−' (U+2212) minus support in nqp::radix(_I)
1 parent 79fbd28 commit 225bdad

File tree

1 file changed

+4
-4
lines changed
  • src/vm/jvm/runtime/org/perl6/nqp/runtime

1 file changed

+4
-4
lines changed

src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4096,8 +4096,8 @@ public static SixModelObject radix(long radix, String str, long zpos, long flags
40964096
}
40974097

40984098
ch = (zpos < chars) ? str.charAt((int)zpos) : 0;
4099-
if ((flags & 0x02) != 0 && (ch == '+' || ch == '-')) {
4100-
neg = (ch == '-');
4099+
if ((flags & 0x02) != 0 && (ch == '+' || ch == '-' || ch == '−')) {
4100+
neg = (ch == '-' || ch == '−');
41014101
zpos++;
41024102
ch = (zpos < chars) ? str.charAt((int)zpos) : 0;
41034103
}
@@ -7281,8 +7281,8 @@ public static SixModelObject radix_I(long radix_l, String str, long zpos, long f
72817281
}
72827282

72837283
ch = (zpos < chars) ? str.charAt((int)zpos) : 0;
7284-
if ((flags & 0x02) != 0 && (ch == '+' || ch == '-')) {
7285-
neg = (ch == '-');
7284+
if ((flags & 0x02) != 0 && (ch == '+' || ch == '-' || ch == '−')) {
7285+
neg = (ch == '-' || ch == '−');
72867286
zpos++;
72877287
ch = (zpos < chars) ? str.charAt((int)zpos) : 0;
72887288
}

0 commit comments

Comments
 (0)