mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-07 01:04:55 +02:00
- Added unit tests for comparison operators (except compare())
- Fixed Value::operator <= implementation (had the semantic of operator >=). Found when addigin unit tests for comparison operators.
This commit is contained in:
parent
e0e1fd37cd
commit
fb17080142
3
NEWS.txt
3
NEWS.txt
@ -86,6 +86,9 @@
|
|||||||
|
|
||||||
- Bug #3139678: stack buffer overflow when parsing a double with a
|
- Bug #3139678: stack buffer overflow when parsing a double with a
|
||||||
length of 32 characters.
|
length of 32 characters.
|
||||||
|
|
||||||
|
- Fixed Value::operator <= implementation (had the semantic of operator >=).
|
||||||
|
Found when addigin unit tests for comparison operators.
|
||||||
|
|
||||||
* License
|
* License
|
||||||
|
|
||||||
|
@ -600,7 +600,7 @@ Value::operator <( const Value &other ) const
|
|||||||
bool
|
bool
|
||||||
Value::operator <=( const Value &other ) const
|
Value::operator <=( const Value &other ) const
|
||||||
{
|
{
|
||||||
return !(other > *this);
|
return !(other < *this);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user