Skip to content

Commit

Permalink
change struct NSVGpaint:type to signed char
Browse files Browse the repository at this point in the history
Commit 34a6c49 added NSVG_PAINT_UNDEF as -1. For this to work correctly
where char is unsigned by default, struct NSVGpaint::type needs changing
to explicit signed char. (An 'int' would work too, but I did not want to
change the size of the stucture.)
  • Loading branch information
sezero committed Dec 4, 2022
1 parent c886e50 commit 7bfb035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nanosvg.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ typedef struct NSVGgradient {
} NSVGgradient;

typedef struct NSVGpaint {
char type;
signed char type;
union {
unsigned int color;
NSVGgradient* gradient;
Expand Down

0 comments on commit 7bfb035

Please sign in to comment.