Skip to content

Commit

Permalink
Fix typo (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcbeard authored Apr 13, 2024
1 parent eec3a6c commit e65e34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PlaydateKit/Core/File.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public enum File {
buffer: UnsafeRawBufferPointer
) throws(Playdate.Error) -> CInt {
let writtenCount = file.write.unsafelyUnwrapped(pointer, buffer.baseAddress, CUnsignedInt(buffer.count))
guard writtenCount != 1 else { throw lastError }
guard writtenCount != -1 else { throw lastError }
return writtenCount
}

Expand Down

0 comments on commit e65e34d

Please sign in to comment.