commit 4b59d5da989c761bbc59fa6c064ee7660bf42e4b
parent 202d7a6582632e09587e4e91ef1603f647ecf338
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 27 Jul 2023 14:44:54 +0200
Fix a warning when using the long long type in C89
Remove the unsupported "LL" suffix from the definition of a constant and
cast it into the target type instead, in this case intptr_t.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test_scmap.c b/src/test_scmap.c
@@ -78,7 +78,7 @@ main(int argc, char** argv)
palette.get_color = get_white;
palette.ncolors = 1 ;
- palette.context = (void*)0xDECAFBADLL;
+ palette.context = (void*)(intptr_t)0xDECAFBAD;
CHK(scmap_create(NULL, NULL, 1, &palette, &scmap) == RES_OK);
CHK(scmap_ref_put(scmap) == RES_OK);