1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-12 22:08:59 +01:00

[dxvk] Fix minor edge cases when parsing floats in config file

This commit is contained in:
Philip Rebohle 2022-08-01 20:24:31 +02:00
parent 727fd7ac33
commit 5256d5e2f6
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -767,7 +767,9 @@ namespace dxvk {
if (value[0] == '-') {
negate = true;
pos += 1;
if (++pos == value.size())
return false;
}
// Parse integer part
@ -811,7 +813,7 @@ namespace dxvk {
if (negate)
result = -result;
return true;
return std::isfinite(result);
}