Skip to content

Commit

Permalink
cpu: New type error caught by recent Typed Lua patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Veltas committed Jul 16, 2016
1 parent 3315f01 commit 48c9d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/cpu.tl
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ while readChar and currentMemPosition < memorySize do
local readByte = Integer(string.byte(String(readChar)))
WriteMem(currentMemPosition, readByte)
currentMemPosition = currentMemPosition + 1
readChar = binFile:read(1)
readChar = String(binFile:read(1))
end

if currentMemPosition == memorySize then
Expand Down

0 comments on commit 48c9d8e

Please sign in to comment.