Perfect-Net icon indicating copy to clipboard operation
Perfect-Net copied to clipboard

Fixes for 32-bit Swift (arm)

Open hpux735 opened this issue 9 years ago • 1 comments

These changes are a bit ugly. The issue with INADDR_CONST is that I have to tell Swift very explicitly (this feels like a swift bug to me) the bit pattern type. The literal constant is stubbornly interpreted as a Int, which being 32-bit, would overflow (swift protects the sign bit).

The change to NetTCPSSL.swift is because the api is slightly different. So, this just traps the arm case and coerces the type.

hpux735 avatar Oct 06 '16 18:10 hpux735

The changes in Sources/NetTCP.swift will not work on 4.1, but the changes in Sources/NetTCPSSL.swift saved my day. This should be merged. Can you please clean up the commit and so a new merge request? Than, Perfect will work on Raspi's too.

petershaw avatar Dec 07 '18 20:12 petershaw