[swift-users] ambiguous minus operator
J.E. Schotsman
jeschot at xs4all.nl
Fri Feb 17 02:50:11 CST 2017
> On 16 Feb 2017, at 18:58, Saagar Jha <saagar at saagarjha.com> wrote:
>
> DispatchTimeInterval.nanoseconds expects an Int, while uptimeNanoseconds is an UInt64 (an thus so is their difference). You can “fix” this by adding an explicit cast:
Aha! So this was just a confusing compiler message.
Thanks.
Jan E.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170217/b299b372/attachment.html>
More information about the swift-users
mailing list