Skip to content
Snippets Groups Projects
Commit c144073d authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

A few small cleanups

parent c23c0300
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ inline BOOL is_approx_equal_fraction_impl(FTYPE x, FTYPE y, U32 frac_bits)
FTYPE diff = (FTYPE) fabs(x - y);
S32 diffInt = (S32) diff;
S32 diffFracTolerance = (S32) ((diff - (FTYPE) diffInt) * (1 << frac_bits));
S32 diffFracTolerance = (S32) ((diff - (FTYPE) diffInt) * (1U << frac_bits));
// if integer portion is not equal, not enough bits were used for packing
// so error out since either the use case is not correct OR there is
......
......@@ -456,8 +456,8 @@ namespace
const LLSD& ImplMap::ref(const LLSD::String& k) const
{
DataMap::const_iterator i = mData.lower_bound(k);
if (i == mData.end() || mData.key_comp()(k, i->first))
DataMap::const_iterator i = mData.find(k);
if (i == mData.end())
{
return undef();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment