Skip to content
Snippets Groups Projects
Commit c8468958 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

STYLE: consistent rounding for float/double underflow (issue #625)

- use (value <= VSMALL) instead of (value < VSMALL) for consistency
  with what equal(value, 0) delivers.
parent f6b07148
Branches
Tags
No related merge requests found
......@@ -115,7 +115,7 @@ bool readScalar(const char* buf, Scalar& val)
// Round underflow to zero
val =
(
(parsed > -ScalarVSMALL && parsed < ScalarVSMALL)
(parsed >= -ScalarVSMALL && parsed <= ScalarVSMALL)
? 0
: Scalar(parsed)
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment