mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
fix(string): initialize negative flag in SStrToFloat
This commit is contained in:
parent
28d60b4c4a
commit
48797d7d3e
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ float SStrToFloat(const char* string) {
|
|||
SStrInitialize();
|
||||
|
||||
double result;
|
||||
bool negative;
|
||||
bool negative = false;
|
||||
|
||||
if (*string == '-') {
|
||||
negative = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue