Skip to content

Typo in shpgeo.c? #189

@a2435191

Description

@a2435191

I am using this project and when I run make I get the following warning:

shpgeo.c:1352:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
    if (highPart = psCShape->nParts)
        ~~~~~~~~~^~~~~~~~~~~~~~~~~~
shpgeo.c:1352:18: note: place parentheses around the assignment to silence this warning
    if (highPart = psCShape->nParts)
                 ^
        (                          )
shpgeo.c:1352:18: note: use '==' to turn this assignment into an equality comparison
    if (highPart = psCShape->nParts)
                 ^
                 ==

Looking inside shpgeo.c at line 1352 it seems like maybe it should be ==. But I am not sure what it's supposed to be!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions