Skip to content

Parser truncates values #95

@PMeira

Description

@PMeira

The OpenDSS parser uses the Val function, e.g.

Val(TokenBuffer, Result, Code); // Try direct conversion to integer

Most integers in OpenDSS are 32-bit values. If the input is larger than the max value, the value is truncated (upper bits dropped).

The results in DSS C-API are the same as in the official binaries, but we could add optional error messages to warn of this behavior.

Since the values are truncated instead of clipped to max/min, this can be dangerous.

Low priority.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions