Skip to content

WaveNet head check is not working properly #107

Description

@mikeoliphant

The WaveNet check to make sure there is no "head" element in the json has a couple of problems that are currently canceling each other out under normal circumstances.

This line:

const bool with_head = config["head"] == NULL;

has two problems. First, the logic is reversed, and it looks like it should incorrectly be setting "with_head" to "true" when it is null.

This is currently being compensated for by the fact that having:

"head": null

in the json actually doesn't make config["head"] null - it is rather a json object that references null.

So, everything currently works ok, but the check isn't really doing what it is supposed to do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions