Skip to content

Commit b54a63e

Browse files
authored
fix: Fixed incorrect usage of toI32() for i64 conversion (#1984)
1 parent 9671e5f commit b54a63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ts/common/value.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class Value {
158158
const values = this.toArray();
159159
const output = new Array<i64>(values.length);
160160
for (let i: i32 = 0; i < values.length; i++) {
161-
output[i] = values[i].toI32();
161+
output[i] = values[i].toI64();
162162
}
163163
return output;
164164
}

0 commit comments

Comments
 (0)