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:
parent
727fd7ac33
commit
5256d5e2f6
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user