diff options
author | oehhar <harald.oehlmann@elmicron.de> | 2022-12-04 16:32:12 (GMT) |
---|---|---|
committer | oehhar <harald.oehlmann@elmicron.de> | 2022-12-04 16:32:12 (GMT) |
commit | 8a4b8b864370decb61aae5b2cd50cf2b8ab00aa6 (patch) | |
tree | 089543b5894683b1db87cbde4f1df4ba6f1e445e /generic | |
parent | a14c6d63444b0d8d1cf31a8ee199486b38ad336b (diff) | |
download | tk-8a4b8b864370decb61aae5b2cd50cf2b8ab00aa6.zip tk-8a4b8b864370decb61aae5b2cd50cf2b8ab00aa6.tar.gz tk-8a4b8b864370decb61aae5b2cd50cf2b8ab00aa6.tar.bz2 |
nanosvg #236: explicitly use "signed char", as enum now has value -1 included [https://github.com/memononen/nanosvg/pull/236]
Diffstat (limited to 'generic')
-rw-r--r-- | generic/nanosvg.h | 8 | ||||
-rw-r--r-- | generic/nanosvgrast.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/generic/nanosvg.h b/generic/nanosvg.h index 77a5913..ee0eb5d 100644 --- a/generic/nanosvg.h +++ b/generic/nanosvg.h @@ -153,7 +153,7 @@ typedef struct NSVGgradient { } NSVGgradient; typedef struct NSVGpaint { - char type; + signed char type; union { unsigned int color; NSVGgradient* gradient; @@ -436,7 +436,7 @@ typedef struct NSVGgradientData { char id[64]; char ref[64]; - char type; + signed char type; union { NSVGlinearData linear; NSVGradialData radial; @@ -878,7 +878,7 @@ static NSVGgradientData* nsvg__findGradientData(NSVGparser* p, const char* id) return NULL; } -static NSVGgradient* nsvg__createGradient(NSVGparser* p, const char* id, const float* localBounds, float *xform, char* paintType) +static NSVGgradient* nsvg__createGradient(NSVGparser* p, const char* id, const float* localBounds, float *xform, signed char* paintType) { NSVGgradientData* data = NULL; NSVGgradientData* ref = NULL; @@ -2716,7 +2716,7 @@ static void nsvg__parseSVG(NSVGparser* p, const char** attr) } } -static void nsvg__parseGradient(NSVGparser* p, const char** attr, char type) +static void nsvg__parseGradient(NSVGparser* p, const char** attr, signed char type) { int i; NSVGgradientData* grad = (NSVGgradientData*)NANOSVG_malloc(sizeof(NSVGgradientData)); diff --git a/generic/nanosvgrast.h b/generic/nanosvgrast.h index 49c33b1..7992640 100644 --- a/generic/nanosvgrast.h +++ b/generic/nanosvgrast.h @@ -126,7 +126,7 @@ typedef struct NSVGmemPage { } NSVGmemPage; typedef struct NSVGcachedPaint { - char type; + signed char type; char spread; float xform[6]; unsigned int colors[256]; |