Skip to content

Commit 107c791

Browse files
fix: Typo in the bigendian branch of embind (#25255)
Last minute change in #25042 introduced a bug in the bigendian branch of the embind code. @juj Could you please run your CI on this PR?
1 parent 1c1baae commit 107c791

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/libemval.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ var LibraryEmVal = {
153153
BigUint64Array: dv.setBigUint64,
154154
Float32Array: dv.setFloat32,
155155
Float64Array: dv.setFloat64,
156-
}[view[Symbol.toStringTag]];
157-
for (var i = 0; i < src.length; i++) writer.call(dv, i * view.BYTES_PER_ELEMENT, src[i], true);
156+
}[dst[Symbol.toStringTag]];
157+
for (var i = 0; i < src.length; i++) writer.call(dv, i * dst.BYTES_PER_ELEMENT, src[i], true);
158158
},
159159
#endif
160160

0 commit comments

Comments
 (0)