From 4571c7f5d8c013d03fec508007dc519a6b3aa0d6 Mon Sep 17 00:00:00 2001 From: Livanh Date: Sun, 3 Mar 2024 21:49:07 +0100 Subject: [PATCH] Define text_object.data.l as "long long" This ensures that text_object.data.l is at least 64 bits in size, even in a 32-bit environment. It can cause issues if smaller, such as text turning black instead of a desired color (see #1477). --- src/text_object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text_object.h b/src/text_object.h index dd72776d..1abdc029 100644 --- a/src/text_object.h +++ b/src/text_object.h @@ -109,7 +109,7 @@ struct text_object { void *opaque; /* new style generic per object data */ char *s; /* some string */ int i; /* some integer */ - long l; /* some long integer */ + long long l; /* some long integer */ } data; void *special_data;