json-as 0.5.34 → 0.5.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,7 +88,7 @@ export function getArrayDepth<T>(depth: i32 = 1): i32 {
88
88
  export function atoi_fast<T extends number>(str: string): T {
89
89
  // @ts-ignore
90
90
  let val: T = 0;
91
- for (let pos = 0; pos < str.length; pos += 2) {
91
+ for (let pos = 0; pos < (str.length << 1); pos += 2) {
92
92
  // @ts-ignore
93
93
  val = (val << 1) + (val << 3) + (load<u16>(changetype<usize>(str) + <usize>pos) - 48);
94
94
  // We use load because in this case, there is no need to have bounds-checking
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-as",
3
- "version": "0.5.34",
3
+ "version": "0.5.35",
4
4
  "description": "JSON encoder/decoder for AssemblyScript",
5
5
  "types": "assembly/index.ts",
6
6
  "author": "Jairus Tanaka",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-as/transform",
3
- "version": "0.5.34",
3
+ "version": "0.5.35",
4
4
  "description": "JSON encoder/decoder for AssemblyScript",
5
5
  "main": "./lib/index.js",
6
6
  "author": "Jairus Tanaka",