Skip to content

Commit

Permalink
minor optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Jun 12, 2017
1 parent 6e06cfd commit 086e738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SDL/Renderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public final class Renderer {

defer { sourcePointer?.deallocate(capacity: 1) }

if var rect = source {
if let rect = source {

sourcePointer = UnsafeMutablePointer.allocate(capacity: 1)

Expand All @@ -109,7 +109,7 @@ public final class Renderer {

defer { destinationPointer?.deallocate(capacity: 1) }

if var rect = destination {
if let rect = destination {

destinationPointer = UnsafeMutablePointer.allocate(capacity: 1)

Expand Down

0 comments on commit 086e738

Please sign in to comment.