Skip to content

Commit

Permalink
Merge pull request #32 from Clyybber/patch-1
Browse files Browse the repository at this point in the history
Update in face of upcoming csize definition change
  • Loading branch information
Vladar4 authored Oct 4, 2019
2 parents 2ca8087 + 75a7a13 commit 06defe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nimgame2/utils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ proc readAll*(src: ptr RWops): string =
result = newString(BufferSize)
var r = 0
while true:
let readBytes = rwRead(src, addr(result[r]), sizeof(uint8), BufferSize)
let readBytes = int rwRead(src, addr(result[r]), csize sizeof(uint8), BufferSize)
if readBytes < BufferSize:
setLen(result, r+readBytes)
break
Expand Down

0 comments on commit 06defe4

Please sign in to comment.