Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor committed Apr 6, 2024
1 parent 33fd3e0 commit 98ec043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PlaydateKit/Playdate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public enum Playdate {
}

if nbytes - 1 > 0 {
var rand = UInt32(rand())
let rand = UInt32(rand())
for j in 0..<(nbytes - i) {
(buf + i + j).assumingMemoryBound(to: UInt8.self).pointee = UInt8(truncatingIfNeeded: rand >> (j * 8))
}
Expand Down

0 comments on commit 98ec043

Please sign in to comment.