mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove undefined behavior
* Taking the negative of a signed negative is UB, but taking the negative of an unsigned is not.
This commit is contained in:
committed by
Elliot Lee
parent
d275a2ab72
commit
6fcd654bee
@@ -466,6 +466,14 @@ Env::enableFeature(uint256 const feature)
|
||||
app().config().features.insert(feature);
|
||||
}
|
||||
|
||||
void
|
||||
Env::disableFeature(uint256 const feature)
|
||||
{
|
||||
// Env::close() must be called for feature
|
||||
// enable to take place.
|
||||
app().config().features.erase(feature);
|
||||
}
|
||||
|
||||
} // namespace jtx
|
||||
|
||||
} // namespace test
|
||||
|
||||
Reference in New Issue
Block a user