Skip to content

Commit

Permalink
fix: convert to uint16array
Browse files Browse the repository at this point in the history
  • Loading branch information
heypoom committed Dec 18, 2023
1 parent cbafa6b commit f03100c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canvas/src/engine/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export class CanvasEngine {

public setMachineMemory(id: number, address: number, data: number[]) {
// Set memory
this.ctx.set_mem(id, address, data)
this.ctx.set_mem(id, address, new Uint16Array(data))

// Refresh memory and value viewers
updateMemoryViewer(id)
Expand Down

0 comments on commit f03100c

Please sign in to comment.