Skip to content

Commit

Permalink
Only convert rt.data to typedarray if params.dataType present
Browse files Browse the repository at this point in the history
  • Loading branch information
austinksmith committed Jun 16, 2024
1 parent 59e6d43 commit 475327f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/hamsters.node.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/hamsters.node.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/hamsters.web.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/hamsters.web.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/core/wheel.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Wheel {
function handleDataType(rtn) {
if (this.params.sharedArray) {
// Do nothing here, we don't need to return a buffer rtn.data is useless here
} else {
} else if(this.params.dataType) {
rtn.data = typedArrayFromBuffer(rtn.dataType, rtn.data);
}
return getTransferableObjects(rtn); // Return transferable objects
Expand Down

0 comments on commit 475327f

Please sign in to comment.