ugorji / go

idiomatic codec and rpc lib for msgpack, cbor, json, etc. msgpack.org[Go]
MIT License
1.83k stars 294 forks source link

Coverity scan - Operands don't affect result #376

Closed raghvendra-dixit closed 1 year ago

raghvendra-dixit commented 1 year ago

File: https://github.com/ugorji/go/blob/master/codec/json.go Details:The expression's value does not depend on the operands; often, this represents an inadvertent logic error. In github.​com/ugorji/go/codec.​jsonParseInteger([]byte): An operation with non-constant operands that computes a result with constant value

screenshot:

image
ugorji commented 1 year ago

Outdated codebase. Please re-run.