mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-16 04:54:39 +00:00
svg_loader util: fix missing quot
There was checking for 0 ('\0') that should be checking for '0'
This commit is contained in:
parent
2a2faca66a
commit
e186bb4a82
1 changed files with 2 additions and 2 deletions
|
@ -167,7 +167,7 @@ float svgUtilStrtof(const char *nPtr, char **endPtr)
|
||||||
unsigned int exponentPart = 0;
|
unsigned int exponentPart = 0;
|
||||||
|
|
||||||
if (isdigit(*iter)) {
|
if (isdigit(*iter)) {
|
||||||
while (*iter == 0) iter++;
|
while (*iter == '0') iter++;
|
||||||
for (; isdigit(*iter); iter++) {
|
for (; isdigit(*iter); iter++) {
|
||||||
exponentPart = exponentPart * 10U + static_cast<unsigned int>(*iter - '0');
|
exponentPart = exponentPart * 10U + static_cast<unsigned int>(*iter - '0');
|
||||||
}
|
}
|
||||||
|
@ -276,4 +276,4 @@ string svgUtilBase64Decode(const char *src)
|
||||||
src += 4;
|
src += 4;
|
||||||
}
|
}
|
||||||
return decoded;
|
return decoded;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue