Skip to content

Commit 38716b9

Browse files
committed
thorvg: Fix unintended use of float_t type, again
1 parent 9a4942f commit 38716b9

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp b/thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp
2+
index f59994aae6..b2ce38852c 100644
3+
--- a/thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp
4+
+++ b/thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp
5+
@@ -709,7 +709,7 @@ static bool _toColor(const char* str, uint8_t* r, uint8_t* g, uint8_t* b, char**
6+
*ref = _idFromUrl((const char*)(str + 3));
7+
return true;
8+
} else if (len >= 10 && (str[0] == 'h' || str[0] == 'H') && (str[1] == 's' || str[1] == 'S') && (str[2] == 'l' || str[2] == 'L') && str[3] == '(' && str[len - 1] == ')') {
9+
- float_t th, ts, tb;
10+
+ float th, ts, tb;
11+
const char *content, *hue, *satuation, *brightness;
12+
content = str + 4;
13+
content = _skipSpace(content, nullptr);

thirdparty/thorvg/src/loaders/svg/tvgSvgLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ static bool _toColor(const char* str, uint8_t* r, uint8_t* g, uint8_t* b, char**
709709
*ref = _idFromUrl((const char*)(str + 3));
710710
return true;
711711
} else if (len >= 10 && (str[0] == 'h' || str[0] == 'H') && (str[1] == 's' || str[1] == 'S') && (str[2] == 'l' || str[2] == 'L') && str[3] == '(' && str[len - 1] == ')') {
712-
float_t th, ts, tb;
712+
float th, ts, tb;
713713
const char *content, *hue, *satuation, *brightness;
714714
content = str + 4;
715715
content = _skipSpace(content, nullptr);

0 commit comments

Comments
 (0)