Swift-FHIR icon indicating copy to clipboard operation
Swift-FHIR copied to clipboard

fixed compile errors on Ubuntu Linux - Swift 4.2

Open popaaaandrei opened this issue 7 years ago • 3 comments

Foundation libs now unify the signature of scanInt and isAtEnd .

popaaaandrei avatar Oct 28 '18 13:10 popaaaandrei

That's cool! So for scanInt and isAtEnd, the if-else flags are no longer needed at all, and therefore the whole fhir_* method can be removed?

p2 avatar Nov 08 '18 05:11 p2

Yes, but I need to test it more because the app crashed one time when generating effectiveDateTime. Don’t merge it yet.

popaaaandrei avatar Nov 08 '18 17:11 popaaaandrei

The crash was caused by force unwrapping optionals in DateAndTime parse() method. Apparently on Linux calendar.dateComponents() doesn't return nanosecond component.

popaaaandrei avatar Dec 05 '18 13:12 popaaaandrei