From 0ce2e2bee4f259c014178f7f7b0eb364f1639c97 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 4 Dec 2022 05:51:10 +0300 Subject: [PATCH] update other dependent places for previous signed char change. --- src/nanosvg.h | 6 +++--- src/nanosvgrast.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nanosvg.h b/src/nanosvg.h index 5affd1c8..60a32382 100644 --- a/src/nanosvg.h +++ b/src/nanosvg.h @@ -398,7 +398,7 @@ typedef struct NSVGgradientData { char id[64]; char ref[64]; - char type; + signed char type; union { NSVGlinearData linear; NSVGradialData radial; @@ -818,7 +818,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; @@ -2636,7 +2636,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*)malloc(sizeof(NSVGgradientData)); diff --git a/src/nanosvgrast.h b/src/nanosvgrast.h index 6e23acb7..17ba3b03 100644 --- a/src/nanosvgrast.h +++ b/src/nanosvgrast.h @@ -114,7 +114,7 @@ typedef struct NSVGmemPage { } NSVGmemPage; typedef struct NSVGcachedPaint { - char type; + signed char type; char spread; float xform[6]; unsigned int colors[256];