We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32d10b4 commit bee3b73Copy full SHA for bee3b73
std/assembly/number.ts
@@ -114,9 +114,9 @@ export abstract class Isize {
114
115
toString(this: isize, radix: i32 = 10): String {
116
if (sizeof<isize>() == 4) {
117
- return itoa32(this, radix);
+ return itoa32(<i32>this, radix);
118
} else {
119
- return itoa64(this, radix);
+ return itoa64(<i64>this, radix);
120
}
121
122
@@ -217,10 +217,10 @@ export abstract class Usize {
217
218
219
toString(this: usize, radix: i32 = 10): String {
220
- if (sizeof<isize>() == 4) {
221
- return utoa32(this, radix);
+ if (sizeof<usize>() == 4) {
+ return utoa32(<u32>this, radix);
222
223
- return utoa64(this, radix);
+ return utoa64(<u64>this, radix);
224
225
226
0 commit comments