fix: Floating point finding not working with negative values
This commit is contained in:
parent
ad85a4a0e3
commit
da8ec1565e
@ -161,7 +161,7 @@ namespace hex::plugin::builtin {
|
|||||||
if (result.ec != std::errc() || result.ptr != string.data() + string.size())
|
if (result.ec != std::errc() || result.ptr != string.data() + string.size())
|
||||||
return { false, { }, 0 };
|
return { false, { }, 0 };
|
||||||
|
|
||||||
if (value < std::numeric_limits<Type>::min() || value > std::numeric_limits<Type>::max())
|
if (value < std::numeric_limits<Type>::lowest() || value > std::numeric_limits<Type>::max())
|
||||||
return { false, { }, 0 };
|
return { false, { }, 0 };
|
||||||
|
|
||||||
return { true, value, sizeof(Type) };
|
return { true, value, sizeof(Type) };
|
||||||
|
Loading…
Reference in New Issue
Block a user