From 3c1e7ed9eeb2881c1f0597e1bde0c36a1cbcc1cf Mon Sep 17 00:00:00 2001 From: Livanh Date: Sun, 3 Mar 2024 21:49:07 +0100 Subject: [PATCH 1/2] 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 dd72776d5..1abdc0293 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; From 4a8c8ef7841a0231c1cdf8d652fa9024524512f3 Mon Sep 17 00:00:00 2001 From: Livanh Date: Sun, 3 Mar 2024 22:51:45 +0100 Subject: [PATCH 2/2] Re-define text_object.data.l as "int64_t" --- 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 1abdc0293..3fb5f311e 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 long l; /* some long integer */ + int64_t l; /* some long integer */ } data; void *special_data;