Skip to content

Commit

Permalink
Define text_object.data.l as "long long"
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
livanh committed Mar 3, 2024
1 parent 585b106 commit 3c1e7ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/text_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3c1e7ed

Please sign in to comment.