graphics/tgif: make C types coherent to appease llvm22

ok benoit@
This commit is contained in:
naddy
2026-06-06 10:54:05 +00:00
parent 102f7a30d8
commit 21aa54f977
3 changed files with 34 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ COMMENT = two-dimensional drawing tool and hyper-object browser
VERSION = 4.2.5
DISTNAME = tgif-QPL-${VERSION}
PKGNAME = tgif-${VERSION}
REVISION = 0
REVISION = 1
CATEGORIES = graphics
HOMEPAGE = http://bourbon.usc.edu/tgif/
+21
View File
@@ -0,0 +1,21 @@
Index: tangram2.c
--- tangram2.c.orig
+++ tangram2.c
@@ -1796,7 +1796,7 @@ char *args; /* semi-colon separated list (arg1;arg2;ar
char arg[3][1024];
/* Extracts parameters from args */
- if( !parseArgs( args, arg, 3, 1024 ) )
+ if( !parseArgs( args, &arg[0][0], 3, 1024 ) )
{
fprintf( stderr, "TGIF: Usage Tangram2GenerateChain( \"arg1;arg2;arg3\" )\n" );
return;
@@ -1844,7 +1844,7 @@ char *args;
/* Extracts parameters from args */
- if( !parseArgs( args, arg, 12, 1024 ) )
+ if( !parseArgs( args, &arg[0][0], 12, 1024 ) )
{
return;
}
+12
View File
@@ -0,0 +1,12 @@
Index: tgcwdl.c
--- tgcwdl.c.orig
+++ tgcwdl.c
@@ -152,7 +152,7 @@ static
void PixeltoRGB(pcwdi, pixel, pn_r, pn_g, pn_b)
ColorWheelDlgInfo *pcwdi;
int pixel;
- unsigned int *pn_r, *pn_g, *pn_b;
+ unsigned char *pn_r, *pn_g, *pn_b;
/* 0 <= r,g,b <= 255 */
{
uint32_t pix=(uint32_t)(unsigned int)pixel;