From 42da28cca528416042fd12d48887411fe212f15d Mon Sep 17 00:00:00 2001 From: Mike Greiner Date: Thu, 28 Apr 2016 11:13:27 -0400 Subject: [PATCH] Fix issue #1: Infinite loop on connect() --- Sources/MySQL/MySQL.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/MySQL/MySQL.swift b/Sources/MySQL/MySQL.swift index 5c2ebed..3fe64a6 100644 --- a/Sources/MySQL/MySQL.swift +++ b/Sources/MySQL/MySQL.swift @@ -27,7 +27,7 @@ import mysqlclient #if swift(>=3.0) extension UnsafeMutablePointer { public static func alloc(num: Int) -> UnsafeMutablePointer { - return UnsafeMutablePointer.alloc(num) + return UnsafeMutablePointer(allocatingCapacity: num) } } #else