Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It found an error in BLEMingle.swift in swift 3 #8

Open
jjjesuasir opened this issue Aug 28, 2017 · 1 comment
Open

It found an error in BLEMingle.swift in swift 3 #8

jjjesuasir opened this issue Aug 28, 2017 · 1 comment
Assignees
Labels

Comments

@jjjesuasir
Copy link

BLEMingleiOS-master/BLEMingleiOS/BLEMingle.swift:259:106:
Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions

the line is
let finalString = rev[0..<7] + "-" + rev[8..<11] + "-" + rev[12..<15] + "-" + rev[16..<19] + "-" + rev[20..<31]

@wraza0116
Copy link

wraza0116 commented Feb 26, 2018

I did try to resolve it by this and working now

    let minusSign = "-"
    let rev1 = rev[0..<7] + minusSign
    let rev2 = rev[8..<11] + minusSign
    let rev3 = rev[12..<15] + minusSign
    let rev4 = rev[16..<19] + minusSign
    let rev5 = rev[20..<31]
    
    let finalString = rev1 + rev2 + rev3 + rev4 + rev5

@gitgarage gitgarage self-assigned this Oct 16, 2020
@gitgarage gitgarage added the bug label Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants