Skip to content

Syntax error in asserts #645

@patmjen

Description

@patmjen

Hello,

When compiling kaolin I got errors due to L166 and L363 in /kaolin/csrc/ops/spc/convolution.cpp.

int Qlevel = level;
int Plevel = Qlevel - jump;
int Olevel = pyramid.size(2)-2;
assert(PLevel >= 0);

int Qlevel = level;
int Plevel = Qlevel + jump;
int Olevel = pyramid.size(2)-2;
assert(PLevel <= Olevel);

Both lines have an assert that references PLevel which is not defined. I assume it should be Plevel? Changing the lines to that fixed the issue for me at least.

Thanks for a great library!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions