Skip to content

Commit

Permalink
fix: remove AS201 'conversion from type usize to i32' warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JairusSW committed Jan 21, 2025
1 parent 96484ea commit f7f657a
Show file tree
Hide file tree
Showing 18 changed files with 4 additions and 3,015 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- fix: disable SIMD in generated transform code by default
- fix: re-add as-bs dependency so that it will not break in non-local environments
- fix: remove AS201 'conversion from type usize to i32' warning

## 2025-01-20 - 1.0.0-alpha.1

Expand Down
2 changes: 1 addition & 1 deletion assembly/deserialize/simple/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function deserializeObject<T>(srcStart: usize, srcEnd: usize, dst: usize)
let keyEnd: usize = 0;
let isKey = false;
let depth = 0;
let lastIndex = 0;
let lastIndex: usize = 0;

// while (srcStart < srcEnd && isSpace(load<u16>(srcStart))) srcStart += 2;
// while (srcEnd > srcStart && isSpace(load<u16>(srcEnd))) srcEnd -= 2;
Expand Down
2 changes: 1 addition & 1 deletion assembly/serialize/simple/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function serializeString(src: string): void {
store<u16>(bs.offset, QUOTE);
bs.offset += 2;

let lastPtr: i32 = srcPtr;
let lastPtr: usize = srcPtr;
while (srcPtr < srcEnd) {
const code = load<u16>(srcPtr);
if (code == 34 || code == 92 || code < 32) {
Expand Down
Loading

0 comments on commit f7f657a

Please sign in to comment.