Skip to content

Commit 6365466

Browse files
authored
Merge pull request #84 from nicely-dev/fix-uint16-javascript
fix: uint16 marshalling for javascript
2 parents 30cb96a + 362d634 commit 6365466

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

template/ecma-marshal.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
buf[i++] = this.{{.NameNative}};
2727
} else {
2828
buf[i++] = {{.Index}};
29-
buf[i++] = this.{{.NameNative}} >>> 0;
29+
buf[i++] = (this.{{.NameNative}} >>> 8) & 255;
3030
buf[i++] = this.{{.NameNative}} & 255;
3131
}
3232
}

0 commit comments

Comments
 (0)