C4Labs / C4iOS

C4 is an open-source creative coding framework that harnesses the power of native iOS programming with a simplified API that gets you working with media right away. Build artworks, design interfaces and explore new possibilities working with media and interaction.
www.c4ios.com
MIT License
981 stars 75 forks source link

Overlapping Access to 'N' Error #689

Closed traviskirton closed 7 years ago

traviskirton commented 7 years ago

When compiling C4iOS in Xcode 9, the following code generates an error in `

Transform.swift`:

    // LU factorisation
    dgetrf_(&N, &N, &matrix, &N, &pivot, &error)
    if error != 0 {
        return nil
    }

    // matrix inversion
    var workspace = [__CLPK_doublereal](repeating: 0, count: 4)
    dgetri_(&N, &matrix, &N, &pivot, &workspace, &N, &error)
    if error != 0 {
        return nil
    }

Error Message: Overlapping accesses to 'N', but modification requires exclusive access; consider copying to a local variable

screen shot 2017-09-15 at 4 55 06 pm
alejandro-isaza commented 7 years ago

Fixed in 5a1344c649360020f614fb097185d3c922a149b7