Skip to content

Commit

Permalink
Fix compiler crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor committed Jun 13, 2024
1 parent 03ee2e1 commit 3707027
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/PlaydateKit/Core/Display.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public enum Display {
set {
var refreshRate = newValue
if !((0...50) ~= refreshRate) {
System.error("refreshRate must be between 0...50")
System.error(StaticString("refreshRate must be between 0...50"))
refreshRate = min(max(refreshRate, 0), 50)
}
_refreshRate = refreshRate
Expand All @@ -53,7 +53,7 @@ public enum Display {
set {
var scale = newValue
if !([1, 2, 4, 8].contains(scale)) {
System.error("scale must be 1, 2, 4, or 8")
System.error(StaticString("scale must be 1, 2, 4, or 8"))
scale = 1
}
_scale = scale
Expand Down
2 changes: 1 addition & 1 deletion Sources/PlaydateKit/Playdate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public enum Playdate {
}

/// Access to the Playdate C API.
public nonisolated(unsafe) static var playdateAPI: PlaydateAPI! {
public static var playdateAPI: PlaydateAPI! {
guard let _playdateAPI else {
fatalError("playdateAPI is not set! Did you forget to call Playdate.initialize(with:)?")
}
Expand Down

0 comments on commit 3707027

Please sign in to comment.